Skip to content

Commit

Permalink
remove component
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonpecora committed Dec 4, 2017
1 parent 79623f7 commit a2df412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/component-data/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export function removeComponent(store, el) {
newList = _.without(list, currentData);
promise = saveComponent(store, { uri: parentURI, data: { [path]: newList } });
} else if (_.isObject(list)) {
log.error('Removing components from props (without replacing them) is not currently supported!', { action: 'removeComponent', uri });
promise = saveComponent(store, { uri: parentURI, data: { [path]: {} }});
} else if (_.isString(list)) {
// list in a page
newList = _.without(list, uri); // we only need the uri, not a full object
Expand Down

0 comments on commit a2df412

Please sign in to comment.