mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 23:46:21 +08:00
Merge pull request #2065 from aignatov-bio/ai-sci-3879-fix-step-table-error
Fix step table error [SCI-3879]
This commit is contained in:
commit
ce91759ee2
|
@ -40,7 +40,7 @@
|
|||
});
|
||||
let hot = $container.handsontable('getInstance');
|
||||
let data = JSON.parse(contents.attr('value'));
|
||||
hot.loadData(data.data);
|
||||
if (Array.isArray(data.data)) hot.loadData(data.data);
|
||||
setTimeout(() => {
|
||||
hot.render()
|
||||
}, 0)
|
||||
|
|
|
@ -302,7 +302,7 @@
|
|||
|
||||
if (contents.attr("value")) {
|
||||
var data = JSON.parse(contents.attr("value"));
|
||||
hot.loadData(data.data);
|
||||
if (Array.isArray(data.data)) hot.loadData(data.data);
|
||||
setTimeout(() => {
|
||||
hot.render()
|
||||
}, 0)
|
||||
|
|
Loading…
Reference in a new issue