diff --git a/src/views/desktop/transactions/import/dialogs/BatchCreateDialog.vue b/src/views/desktop/transactions/import/dialogs/BatchCreateDialog.vue
index 341786fc..7ca3624e 100644
--- a/src/views/desktop/transactions/import/dialogs/BatchCreateDialog.vue
+++ b/src/views/desktop/transactions/import/dialogs/BatchCreateDialog.vue
@@ -41,7 +41,8 @@
v-for="item in invalidItems">
-
+
@@ -115,6 +116,22 @@ const selectedNames = ref([]);
let resolveFunc: ((response: BatchCreateDialogResponse) => void) | null = null;
let rejectFunc: ((reason?: unknown) => void) | null = null;
+function updateSelectedNames(value: string, selected: boolean | null): void {
+ const newSelectedNames: string[] = [];
+
+ for (const name of selectedNames.value) {
+ if (name !== value || selected) {
+ newSelectedNames.push(name);
+ }
+ }
+
+ if (selected) {
+ newSelectedNames.push(value);
+ }
+
+ selectedNames.value = newSelectedNames;
+}
+
function buildBatchCreateCategoryResponse(createdCategories: Record): BatchCreateDialogResponse {
const displayNameSourceItemMap: Record = {};
const sourceTargetMap: Record = {};