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:
aignatov-bio 2019-09-18 14:59:16 +02:00 committed by GitHub
commit ce91759ee2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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)