Skip to content

Commit 559c9a7

Browse files
committed
delete element key press
1 parent c993b89 commit 559c9a7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/src/components/left/ElementsContainer.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ const ElementsContainer = (props): JSX.Element => {
1818

1919
const handleDelete = () => {
2020
dispatch(deleteChild({ id: {}, contextParam: contextParam }));
21-
// if (roomCode) {
22-
// emitEvent('deleteChildAction', roomCode, {
23-
// id,
24-
// contextParam
25-
// });
26-
// }
21+
if (roomCode) {
22+
emitEvent('deleteChildAction', roomCode, {
23+
id: {},
24+
contextParam: contextParam
25+
});
26+
}
2727
};
2828

2929
const keyBindedFunc = useCallback((e) => {

0 commit comments

Comments
 (0)