Skip to content

Commit 3e6a98d

Browse files
authored
Merge pull request #4 from aw2934/handleSeparators
fix issue where elements dropped onto empty divs disappear
2 parents c5cfe29 + 8a85ae3 commit 3e6a98d

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)