From 74a6c49f3f3e5fe291c3628b0d5aeb1965628175 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 2 Aug 2023 20:44:36 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/8889 --- app/src/layout/dock/Files.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.ts index 3d9f205fe..c741b2d00 100644 --- a/app/src/layout/dock/Files.ts +++ b/app/src/layout/dock/Files.ts @@ -352,7 +352,8 @@ export class Files extends Model { selectElements.forEach((item: HTMLElement, index) => { ghostElement.append(item.cloneNode(true)); item.style.opacity = "0.1"; - const itemNodeId = item.dataset.nodeId || item.dataset.path; + const itemNodeId = item.dataset.nodeId || + item.dataset.path; // 拖拽笔记本时值不能为空,否则 drop 就不会继续排序 if (itemNodeId) { ids += itemNodeId; if (index < selectElements.length - 1) {