From 8f4d4eaabb8ca40bd98b4993dcb11cdca2f4879c Mon Sep 17 00:00:00 2001 From: Catherine Renelle <32781029+catrenelle@users.noreply.github.com> Date: Fri, 13 Feb 2026 18:46:32 -0500 Subject: [PATCH] Exclude current category from parent options when editing Co-Authored-By: Claude Opus 4.6 --- frontend/src/views/categories/CategoriesView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/categories/CategoriesView.vue b/frontend/src/views/categories/CategoriesView.vue index 2fbefe5..2f6c057 100644 --- a/frontend/src/views/categories/CategoriesView.vue +++ b/frontend/src/views/categories/CategoriesView.vue @@ -65,7 +65,7 @@ const showDeleteDialog = ref(false) const deleteTarget = ref(null) const form = ref({ name: '', type: 'Expense', parentId: null as string | null, isActive: true }) -const parentOptions = computed(() => allCategories.value.filter(c => !c.parentId)) +const parentOptions = computed(() => allCategories.value.filter(c => !c.parentId && c.id !== editingCategory.value?.id)) onMounted(async () => { await reloadCategories()