Skip to content

Commit 44a1f04

Browse files
committed
fix: 增加返回值防止报错
1 parent 9ab140e commit 44a1f04

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,16 @@ export function execute(id, data) {
5050
const univerSheet = Data.get(id);
5151

5252
const { firstPush, backdrop, pushData } = univerSheet;
53+
let ret = null;
5354
if (pushData) {
54-
pushData(data);
55+
ret = pushData(data);
5556
}
5657
if (firstPush === true && backdrop) {
5758
setTimeout(() => {
5859
backdrop.classList.add('d-none');
5960
}, 100);
6061
}
62+
return ret;
6163
}
6264

6365
export function dispose(id) {

0 commit comments

Comments
 (0)