code refactor
This commit is contained in:
@@ -309,7 +309,9 @@ function open(options?: { id?: string, currentAccount?: Account, category?: numb
|
||||
showState.value = false;
|
||||
|
||||
if (!error.processed) {
|
||||
snackbar.value?.showError(error);
|
||||
if (rejectFunc) {
|
||||
rejectFunc(error);
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
||||
@@ -167,7 +167,9 @@ function open(options: { id?: string; parentId?: string; type?: CategoryType; cu
|
||||
showState.value = false;
|
||||
|
||||
if (!error.processed) {
|
||||
snackbar.value?.showError(error);
|
||||
if (rejectFunc) {
|
||||
rejectFunc(error);
|
||||
}
|
||||
}
|
||||
});
|
||||
} else if (options.parentId) {
|
||||
|
||||
Reference in New Issue
Block a user