From 49c5e3be9d95ae6afe2be9e520d1be29263113ab Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 10 May 2023 00:16:25 +0800 Subject: [PATCH] :bug: split tab --- app/src/layout/util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts index 47d89d05a..bd4572280 100644 --- a/app/src/layout/util.ts +++ b/app/src/layout/util.ts @@ -637,14 +637,14 @@ export const copyTab = (app: App, tab: Tab) => { const custom = tab.model as Custom; if (custom.type === "siyuan-card") { model = newCardModel({ - tab, + tab: newTab, data: custom.data }); } else { app.plugins.find(item => { if (item.models[custom.type]) { model = item.models[custom.type]({ - tab, + tab: newTab, data: custom.data }); return true;