Skip to content

Commit 3fa973e

Browse files
committed
Unlink also outputSlots of brick when deleting it
1 parent 613399c commit 3fa973e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/actions/workspaceActions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export const removeElement = (elementId) => {
219219
dispatch(_unlinkSlots(element))
220220
}
221221

222-
if(element.componentName == PRIMITIVE) {
222+
if(element.componentName == PRIMITIVE || element.componentName == BRICK) {
223223
const slotId = Object.keys(element.outputSlots)[0]
224224
const slot = element.outputSlots[slotId]
225225

0 commit comments

Comments
 (0)