Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: disallow to delete readonly scopes in advanced search (#14635)

boojacka8f358385f61
diff --git a/frontend/src/components/AdvancedSearch/AdvancedSearch.vue b/frontend/src/components/AdvancedSearch/AdvancedSearch.vue
index 2bdc497dcc..98abf10737 100644
--- a/frontend/src/components/AdvancedSearch/AdvancedSearch.vue
+++ b/frontend/src/components/AdvancedSearch/AdvancedSearch.vue
@@ -400,8 +400,8 @@ const handleKeyDown = (e: KeyboardEvent) => {
} else {
e.stopPropagation();
e.preventDefault();
- // Otherwise mark the last tag as 'focusedTag'
- const id = last(props.params.scopes)?.id;
+ // Otherwise mark the last editable scope as focused.
+ const id = last(editableScopes.value)?.id;
if (id) {
focusedTagId.value = id;
scrollScopeTagIntoViewIfNeeded(id);