mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-04 03:36:44 +08:00
Fix protocol import for empty metadata [SCI-7915] (#4996)
This commit is contained in:
parent
94b5b4a425
commit
c1f55e99a7
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ class ProtocolsImporterV2
|
|||
table: Table.new(
|
||||
name: params['name'],
|
||||
contents: Base64.decode64(params['contents']),
|
||||
metadata: JSON.parse(params['metadata'] || '{}'),
|
||||
metadata: JSON.parse(params['metadata'].presence || '{}'),
|
||||
created_by: @user,
|
||||
last_modified_by: @user,
|
||||
team: @team
|
||||
|
|
Loading…
Reference in a new issue