From 43d49cf066a5dd61140c4fab66aff1d3f4f260b9 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 29 Apr 2026 10:26:29 +0800 Subject: [PATCH 1/2] =?UTF-8?q?refactor:=20=E5=A2=9E=E5=8A=A0=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E4=BF=9D=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/UniverSheet.razor.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/BootstrapBlazor.UniverSheet/Components/UniverSheet.razor.js b/src/components/BootstrapBlazor.UniverSheet/Components/UniverSheet.razor.js index 22b4d7eb..74c544a3 100644 --- a/src/components/BootstrapBlazor.UniverSheet/Components/UniverSheet.razor.js +++ b/src/components/BootstrapBlazor.UniverSheet/Components/UniverSheet.razor.js @@ -48,6 +48,9 @@ export async function init(id, invoke, options) { export function execute(id, data) { const univerSheet = Data.get(id); + if (univerSheet === null) { + return; + } const { firstPush, backdrop, pushData } = univerSheet; let ret = null; @@ -66,6 +69,10 @@ export function dispose(id) { const univerSheet = Data.get(id); Data.remove(id); + if (univerSheet === null) { + return; + } + if (isFunction(univerSheet.dispose)) { univerSheet.dispose(); } From 91fffa82648dcc21fecc0f5be2d12149132e6fbb Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 29 Apr 2026 10:26:38 +0800 Subject: [PATCH 2/2] chore: bump version 10.0.11 --- .../BootstrapBlazor.UniverSheet.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/BootstrapBlazor.UniverSheet/BootstrapBlazor.UniverSheet.csproj b/src/components/BootstrapBlazor.UniverSheet/BootstrapBlazor.UniverSheet.csproj index 822e5655..0ddd9120 100644 --- a/src/components/BootstrapBlazor.UniverSheet/BootstrapBlazor.UniverSheet.csproj +++ b/src/components/BootstrapBlazor.UniverSheet/BootstrapBlazor.UniverSheet.csproj @@ -1,7 +1,7 @@  - 10.0.10 + 10.0.11