From 6eb401e1ca2d152b654328090f6558794d912f91 Mon Sep 17 00:00:00 2001 From: John Obelenus Date: Wed, 18 Dec 2024 14:44:29 -0500 Subject: [PATCH] BUG-703: hitting backspace with no selections wrongly pops the delete modal --- app/web/src/components/ModelingView/DeleteSelectionModal.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/web/src/components/ModelingView/DeleteSelectionModal.vue b/app/web/src/components/ModelingView/DeleteSelectionModal.vue index 8da113da52..8a81eb62d8 100644 --- a/app/web/src/components/ModelingView/DeleteSelectionModal.vue +++ b/app/web/src/components/ModelingView/DeleteSelectionModal.vue @@ -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 ); });