Skip to content

Commit 3102b01

Browse files
committed
Commented out unnecessary conditional
1 parent 5fd0730 commit 3102b01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/redux/reducers/slice/appStateSlice.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ const appStateSlice = createSlice({
336336
// if the childId is null, this signifies that we are adding a child to the top-level component rather than another child element
337337
// we also add a separator before any new child
338338
// if the newChild Element is an input or img type, delete the children key/value pair
339-
if (newChild.name === 'input' && newChild.name === 'img')
340-
delete newChild.children;
339+
// if (newChild.name === 'input' && newChild.name === 'img')
340+
// delete newChild.children;
341341
let directParent;
342342
if (childId === null) {
343343
parentComponent.children.push(topSeparator);

0 commit comments

Comments
 (0)