diff --git a/src/views/desktop/categories/list/dialogs/EditDialog.vue b/src/views/desktop/categories/list/dialogs/EditDialog.vue index ee52959f..3cdaa1aa 100644 --- a/src/views/desktop/categories/list/dialogs/EditDialog.vue +++ b/src/views/desktop/categories/list/dialogs/EditDialog.vue @@ -143,10 +143,6 @@ const showState = ref(false); let resolveFunc: ((value: TransactionCategoryEditRespose) => void) | null = null; let rejectFunc: ((reason?: unknown) => void) | null = null; -defineExpose({ - open -}); - function open(options: { id?: string; parentId?: string; type?: CategoryType; currentCategory?: TransactionCategory }): Promise { showState.value = true; loading.value = true; @@ -239,4 +235,8 @@ function cancel(): void { rejectFunc?.(); showState.value = false; } + +defineExpose({ + open +});