Skip to content

Commit 8a85ae3

Browse files
committed
fix issue where elements dropped onto empty divs disappear
1 parent c5cfe29 commit 8a85ae3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/helperFunctions/manageSeparators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const manageSeparators = {};
88
manageSeparators.nextTopSeparatorId = initialState.nextTopSeparatorId;
99

1010
manageSeparators.handleSeparators = (arr, str) => {
11-
if ((str === 'delete' || str === 'change position') && arr.length === 1) {
11+
if ((str === 'delete' || str === 'change position') && arr.length === 1 && arr[0].name === 'separator') {
1212
arr.splice(0, 1);
1313
}
1414

0 commit comments

Comments
 (0)