From afe0ed1f408ca77303d396a7cd93ab6d729a95a5 Mon Sep 17 00:00:00 2001 From: Andrej Date: Fri, 6 Oct 2023 13:43:32 +0200 Subject: [PATCH] Fix extracting tables for protocol parser --- app/jobs/protocols/docx_import_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/protocols/docx_import_job.rb b/app/jobs/protocols/docx_import_job.rb index 0bfb494c4..9cf577551 100644 --- a/app/jobs/protocols/docx_import_job.rb +++ b/app/jobs/protocols/docx_import_job.rb @@ -85,7 +85,7 @@ module Protocols def create_step_table_element!(step, step_element_json) table = Table.create!( name: step_element_json['name'].presence || 'New table', - contents: step_element_json['contents'], + contents: step_element_json['contents'].to_json, created_by: @user, last_modified_by: @user, team: @team