Skip to content

Commit

Permalink
Merge pull request #5158 from systeminit/fix/BUG-703-no-selected-back…
Browse files Browse the repository at this point in the history
…space-is-wrong

BUG-703: hitting backspace with no selections wrongly pops the delete modal
  • Loading branch information
jobelenus authored Dec 18, 2024
2 parents a6bdeb1 + 6eb401e commit efa778a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/web/src/components/ModelingView/DeleteSelectionModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ const allErasableViews = computed(() => {
);
return (
allViews &&
erasableViews.value.length === viewStore.selectedComponents.length
erasableViews.value.length === viewStore.selectedComponents.length &&
viewStore.selectedComponents.length > 0
);
});
Expand Down

0 comments on commit efa778a

Please sign in to comment.