From 3bd2debf4c2f83878fb21a01476dac7db80644a3 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 16 Dec 2024 17:45:49 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20alt+=E7=82=B9=E5=87=BB=E4=B8=A4?= =?UTF-8?q?=E6=AC=A1=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/editor/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/editor/util.ts b/app/src/editor/util.ts index 1ff7da24d..f30062a43 100644 --- a/app/src/editor/util.ts +++ b/app/src/editor/util.ts @@ -276,7 +276,7 @@ export const openFile = async (options: IOpenFileOptions) => { } wnd.showHeading(); if (options.afterOpen) { - options.afterOpen(createdTab.model); + options.afterOpen(createdTab ? createdTab.model : undefined); } return createdTab; }