mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 19:51:01 +08:00
Fix uploading of old protocol tables [SCI-8736] (#5673)
This commit is contained in:
parent
8bf8b9cc72
commit
13f0b26875
1 changed files with 2 additions and 2 deletions
|
@ -257,10 +257,10 @@ function importProtocolFromFile(
|
|||
}
|
||||
|
||||
function addTablePreview(stepEl, tableNode) {
|
||||
var tableId = $(tableNode).attr('id');
|
||||
var tableName = $(tableNode).children('name').text();
|
||||
var tableContent = $(tableNode).children('contents').text();
|
||||
var tableMetadata = JSON.parse($(tableNode).children('metadata').text()) || {};
|
||||
var metadata = $(tableNode).children('metadata').text();
|
||||
var tableMetadata = metadata ? JSON.parse(metadata) : {};
|
||||
|
||||
// Generate table element
|
||||
var tableEl = newPreviewElement(
|
||||
|
|
Loading…
Reference in a new issue