Skip to content

Commit 9136ce2

Browse files
authored
feat(UniverSheet): bump version 10.0.11 (#987)
* refactor: 增加异常保护 * chore: bump version 10.0.11
1 parent a4c0e8a commit 9136ce2

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/components/BootstrapBlazor.UniverSheet/BootstrapBlazor.UniverSheet.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>10.0.10</Version>
4+
<Version>10.0.11</Version>
55
</PropertyGroup>
66

77
<PropertyGroup>

src/components/BootstrapBlazor.UniverSheet/Components/UniverSheet.razor.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ export async function init(id, invoke, options) {
4848

4949
export function execute(id, data) {
5050
const univerSheet = Data.get(id);
51+
if (univerSheet === null) {
52+
return;
53+
}
5154

5255
const { firstPush, backdrop, pushData } = univerSheet;
5356
let ret = null;
@@ -66,6 +69,10 @@ export function dispose(id) {
6669
const univerSheet = Data.get(id);
6770
Data.remove(id);
6871

72+
if (univerSheet === null) {
73+
return;
74+
}
75+
6976
if (isFunction(univerSheet.dispose)) {
7077
univerSheet.dispose();
7178
}

0 commit comments

Comments
 (0)