From 37a62c1cb5c632e50bf6615f4961c31b5ffe6989 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 10 Apr 2024 21:04:02 +0800 Subject: [PATCH] fixed an issue where item opening information would also be copied when copying a item. --- electron/main/item/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron/main/item/index.ts b/electron/main/item/index.ts index 93eab1c..dab3329 100644 --- a/electron/main/item/index.ts +++ b/electron/main/item/index.ts @@ -210,7 +210,7 @@ function copy(idList: Array, toClassificationId: number) { let itemList = selectByIdList(false, idList); if (itemList.length > 0) { // 清空打开信息 - resultList.forEach((item) => clearOpenInfo(item)); + itemList.forEach((item) => clearOpenInfo(item)); // 批量添加 resultList = batchAdd(toClassificationId, itemList); }