We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bc4ce3 commit 8e4fcedCopy full SHA for 8e4fced
1 file changed
src/components/BootstrapBlazor.UniverSheet/wwwroot/univer.js
@@ -70,12 +70,12 @@ export async function createUniverSheetAsync(sheet) {
70
...options
71
});
72
73
- const { data: { data } = {} } = sheet.options;
+ const { data } = sheet.options;
74
if (data) {
75
- const template = typeof data.template === 'string' ? JSON.parse(data.template) : data.template;
76
- template && delete data.template;
77
- univerAPI.createWorkbook(merge({}, template, { customData: data }));
78
- delete sheet.options.data;
+ const { messageName, commandName, data } = data;
+ if (messageName === null && commandName === null && data) {
+ univerAPI.createWorkbook(data);
+ }
79
}
80
else {
81
univerAPI.createUniverSheet();
0 commit comments