From 16088d881f43ca41eb19dd1b81d997711ad806bd Mon Sep 17 00:00:00 2001 From: Ramon Granell Date: Tue, 3 Oct 2023 12:53:08 +0100 Subject: [PATCH 1/5] dealing with showing additional information that it is a string --- src/components/Records/Record/AdditionalInfo.vue | 13 ++++++++++--- .../Records/Record/AdditionalInfo.spec.js | 6 ++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/components/Records/Record/AdditionalInfo.vue b/src/components/Records/Record/AdditionalInfo.vue index 3889fdd5a7..fe24b6bc27 100644 --- a/src/components/Records/Record/AdditionalInfo.vue +++ b/src/components/Records/Record/AdditionalInfo.vue @@ -85,12 +85,19 @@ export default { } }, setAvailableData(selectedNode, key) { + (typeof selectedNode) // if received node is not an array if (!isArray(selectedNode)) { this.tempData[key] = [] - Object.keys(selectedNode).forEach(item_key => { - this.tempData[key].push({[item_key]: selectedNode[item_key]}) - }) + // Special case this is a string + if (typeof selectedNode === 'string' ){ + this.tempData[key].push({"": selectedNode}) + } + else { + Object.keys(selectedNode).forEach(item_key => { + this.tempData[key].push({[item_key]: selectedNode[item_key]}) + }) + } return } // if received node is an array diff --git a/tests/unit/components/Records/Record/AdditionalInfo.spec.js b/tests/unit/components/Records/Record/AdditionalInfo.spec.js index 93723552c4..016713c37b 100644 --- a/tests/unit/components/Records/Record/AdditionalInfo.spec.js +++ b/tests/unit/components/Records/Record/AdditionalInfo.spec.js @@ -71,6 +71,7 @@ describe("AdditionalInfo.vue", function(){ await wrapper.vm.setAvailableData(selectedNode,'n') selectedNode = [{}] await wrapper.vm.setAvailableData(selectedNode,'a') + await wrapper.vm.setAvailableData("Hello",'justString') expect(wrapper.vm.tempData).toStrictEqual({ "a": [ { @@ -88,6 +89,11 @@ describe("AdditionalInfo.vue", function(){ { "a": [] } + ], + "justString": [ + { + "": "Hello" + } ] }); }); From 4d663ca25f6fc0b51e63ccb62518211be5fcd73a Mon Sep 17 00:00:00 2001 From: ramGranell Date: Tue, 3 Oct 2023 11:54:49 +0000 Subject: [PATCH 2/5] Autogenerated documentation files --- documentation/html/ExternalRESTClients.html | 2 +- documentation/html/GraphQLClient.html | 2 +- documentation/html/RESTClient.html | 2 +- documentation/html/Static.html | 2 +- documentation/html/classes.list.html | 2 +- .../html/components_Records_Record_Collections.vue.html | 2 +- .../html/components_Records_Record_RelatedContent.vue.html | 2 +- .../html/components_Records_Search_Header_FilterChips.vue.html | 2 +- .../html/components_Records_Search_Header_Pagination.vue.html | 2 +- .../html/components_Records_Search_Header_Sorting.vue.html | 2 +- .../components_Records_Search_Input_FilterAutocomplete.vue.html | 2 +- .../html/components_Records_Search_Input_FilterButton.vue.html | 2 +- .../html/components_Records_Search_Input_SearchInput.vue.html | 2 +- documentation/html/global.html | 2 +- documentation/html/index.html | 2 +- documentation/html/lib_Client_ExternalClients.js.html | 2 +- documentation/html/lib_Client_RESTClient.js.html | 2 +- documentation/html/lib_GraphClient_GraphClient.js.html | 2 +- documentation/html/module-Curator.html | 2 +- documentation/html/module-Home.html | 2 +- documentation/html/module-Login.html | 2 +- documentation/html/module-NewRecord.html | 2 +- documentation/html/module-Pagination.html | 2 +- documentation/html/module-Signup.html | 2 +- documentation/html/module-User.html | 2 +- documentation/html/modules.list.html | 2 +- documentation/html/namespaces.list.html | 2 +- documentation/html/router_hackSearch.js.html | 2 +- documentation/html/store_introspector.js.html | 2 +- documentation/html/store_recordData.js.html | 2 +- documentation/html/store_recordSearch.js.html | 2 +- documentation/html/store_searchFilters.js.html | 2 +- documentation/html/utils_recordTabUtils.js.html | 2 +- documentation/html/utils_rules.js.html | 2 +- documentation/html/views_CreateRecord_NewRecord.vue.html | 2 +- documentation/html/views_Home_Home.vue.html | 2 +- documentation/html/views_Records_Record.vue.html | 2 +- documentation/html/views_Records_Records.vue.html | 2 +- documentation/html/views_Static_Community_Community.vue.html | 2 +- documentation/html/views_Static_Timeline_Timeline.vue.html | 2 +- documentation/html/views_Users_Login_Login.vue.html | 2 +- documentation/html/views_Users_Signup.vue.html | 2 +- 42 files changed, 42 insertions(+), 42 deletions(-) diff --git a/documentation/html/ExternalRESTClients.html b/documentation/html/ExternalRESTClients.html index e1c618f9e5..eacc3b7679 100644 --- a/documentation/html/ExternalRESTClients.html +++ b/documentation/html/ExternalRESTClients.html @@ -414,7 +414,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/GraphQLClient.html b/documentation/html/GraphQLClient.html index f2f094975a..de2b0c35f9 100644 --- a/documentation/html/GraphQLClient.html +++ b/documentation/html/GraphQLClient.html @@ -912,7 +912,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/RESTClient.html b/documentation/html/RESTClient.html index 47bb7fe79e..3fa523e9a9 100644 --- a/documentation/html/RESTClient.html +++ b/documentation/html/RESTClient.html @@ -8349,7 +8349,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/Static.html b/documentation/html/Static.html index 21dd52d3d2..ddae0645a8 100644 --- a/documentation/html/Static.html +++ b/documentation/html/Static.html @@ -391,7 +391,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/classes.list.html b/documentation/html/classes.list.html index 272e5ee935..ea6de255a3 100644 --- a/documentation/html/classes.list.html +++ b/documentation/html/classes.list.html @@ -233,7 +233,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/components_Records_Record_Collections.vue.html b/documentation/html/components_Records_Record_Collections.vue.html index e1be14d9e5..edba5caea7 100644 --- a/documentation/html/components_Records_Record_Collections.vue.html +++ b/documentation/html/components_Records_Record_Collections.vue.html @@ -356,7 +356,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/components_Records_Record_RelatedContent.vue.html b/documentation/html/components_Records_Record_RelatedContent.vue.html index 152471d20e..8936a89f89 100644 --- a/documentation/html/components_Records_Record_RelatedContent.vue.html +++ b/documentation/html/components_Records_Record_RelatedContent.vue.html @@ -364,7 +364,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/components_Records_Search_Header_FilterChips.vue.html b/documentation/html/components_Records_Search_Header_FilterChips.vue.html index 277854b7e9..d53c06e9d3 100644 --- a/documentation/html/components_Records_Search_Header_FilterChips.vue.html +++ b/documentation/html/components_Records_Search_Header_FilterChips.vue.html @@ -252,7 +252,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/components_Records_Search_Header_Pagination.vue.html b/documentation/html/components_Records_Search_Header_Pagination.vue.html index 732a951d94..9908a3f278 100644 --- a/documentation/html/components_Records_Search_Header_Pagination.vue.html +++ b/documentation/html/components_Records_Search_Header_Pagination.vue.html @@ -259,7 +259,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/components_Records_Search_Header_Sorting.vue.html b/documentation/html/components_Records_Search_Header_Sorting.vue.html index 0f20d90068..3487dfcc16 100644 --- a/documentation/html/components_Records_Search_Header_Sorting.vue.html +++ b/documentation/html/components_Records_Search_Header_Sorting.vue.html @@ -215,7 +215,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/components_Records_Search_Input_FilterAutocomplete.vue.html b/documentation/html/components_Records_Search_Input_FilterAutocomplete.vue.html index 8337ee8dad..49f9efdece 100644 --- a/documentation/html/components_Records_Search_Input_FilterAutocomplete.vue.html +++ b/documentation/html/components_Records_Search_Input_FilterAutocomplete.vue.html @@ -314,7 +314,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/components_Records_Search_Input_FilterButton.vue.html b/documentation/html/components_Records_Search_Input_FilterButton.vue.html index 451543f3f4..11b2e5f434 100644 --- a/documentation/html/components_Records_Search_Input_FilterButton.vue.html +++ b/documentation/html/components_Records_Search_Input_FilterButton.vue.html @@ -278,7 +278,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/components_Records_Search_Input_SearchInput.vue.html b/documentation/html/components_Records_Search_Input_SearchInput.vue.html index 9c120d8a44..b49bd9ab42 100644 --- a/documentation/html/components_Records_Search_Input_SearchInput.vue.html +++ b/documentation/html/components_Records_Search_Input_SearchInput.vue.html @@ -283,7 +283,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/global.html b/documentation/html/global.html index 1627596a39..7edf802d6e 100644 --- a/documentation/html/global.html +++ b/documentation/html/global.html @@ -2284,7 +2284,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/index.html b/documentation/html/index.html index 6b05883ea8..73fcad6a2a 100644 --- a/documentation/html/index.html +++ b/documentation/html/index.html @@ -176,7 +176,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/lib_Client_ExternalClients.js.html b/documentation/html/lib_Client_ExternalClients.js.html index 1ce7a75e70..a18301f2ca 100644 --- a/documentation/html/lib_Client_ExternalClients.js.html +++ b/documentation/html/lib_Client_ExternalClients.js.html @@ -228,7 +228,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/lib_Client_RESTClient.js.html b/documentation/html/lib_Client_RESTClient.js.html index 94fd56419b..0ad4d20a7e 100644 --- a/documentation/html/lib_Client_RESTClient.js.html +++ b/documentation/html/lib_Client_RESTClient.js.html @@ -1116,7 +1116,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/lib_GraphClient_GraphClient.js.html b/documentation/html/lib_GraphClient_GraphClient.js.html index c259827e3c..1cdab33ceb 100644 --- a/documentation/html/lib_GraphClient_GraphClient.js.html +++ b/documentation/html/lib_GraphClient_GraphClient.js.html @@ -281,7 +281,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/module-Curator.html b/documentation/html/module-Curator.html index bee3be7c3c..035b17c3c1 100644 --- a/documentation/html/module-Curator.html +++ b/documentation/html/module-Curator.html @@ -228,7 +228,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/module-Home.html b/documentation/html/module-Home.html index 9da3f10357..1a5a21eb3c 100644 --- a/documentation/html/module-Home.html +++ b/documentation/html/module-Home.html @@ -220,7 +220,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/module-Login.html b/documentation/html/module-Login.html index 4811cf79a7..3d7e4c31a3 100644 --- a/documentation/html/module-Login.html +++ b/documentation/html/module-Login.html @@ -220,7 +220,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/module-NewRecord.html b/documentation/html/module-NewRecord.html index d1ddc6db32..96a7f0f26b 100644 --- a/documentation/html/module-NewRecord.html +++ b/documentation/html/module-NewRecord.html @@ -220,7 +220,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/module-Pagination.html b/documentation/html/module-Pagination.html index 61cb6f27e6..8947b7e734 100644 --- a/documentation/html/module-Pagination.html +++ b/documentation/html/module-Pagination.html @@ -527,7 +527,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/module-Signup.html b/documentation/html/module-Signup.html index 2d8d400f87..38e0d76af9 100644 --- a/documentation/html/module-Signup.html +++ b/documentation/html/module-Signup.html @@ -220,7 +220,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/module-User.html b/documentation/html/module-User.html index e2cb454bb0..df08e6b88e 100644 --- a/documentation/html/module-User.html +++ b/documentation/html/module-User.html @@ -228,7 +228,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/modules.list.html b/documentation/html/modules.list.html index cb9082f629..69e7c11bb8 100644 --- a/documentation/html/modules.list.html +++ b/documentation/html/modules.list.html @@ -233,7 +233,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/namespaces.list.html b/documentation/html/namespaces.list.html index 398b66341d..0bacaca299 100644 --- a/documentation/html/namespaces.list.html +++ b/documentation/html/namespaces.list.html @@ -233,7 +233,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/router_hackSearch.js.html b/documentation/html/router_hackSearch.js.html index 6c0569e165..bf8119ddf7 100644 --- a/documentation/html/router_hackSearch.js.html +++ b/documentation/html/router_hackSearch.js.html @@ -213,7 +213,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/store_introspector.js.html b/documentation/html/store_introspector.js.html index 6eb4892673..0613e1b764 100644 --- a/documentation/html/store_introspector.js.html +++ b/documentation/html/store_introspector.js.html @@ -294,7 +294,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/store_recordData.js.html b/documentation/html/store_recordData.js.html index c1cfa97f22..3c39a280bd 100644 --- a/documentation/html/store_recordData.js.html +++ b/documentation/html/store_recordData.js.html @@ -766,7 +766,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/store_recordSearch.js.html b/documentation/html/store_recordSearch.js.html index aaa2e7903d..cddd046b6f 100644 --- a/documentation/html/store_recordSearch.js.html +++ b/documentation/html/store_recordSearch.js.html @@ -337,7 +337,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/store_searchFilters.js.html b/documentation/html/store_searchFilters.js.html index 727adf1dc1..6b377573b1 100644 --- a/documentation/html/store_searchFilters.js.html +++ b/documentation/html/store_searchFilters.js.html @@ -294,7 +294,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/utils_recordTabUtils.js.html b/documentation/html/utils_recordTabUtils.js.html index d3804600d3..4bf1f82042 100644 --- a/documentation/html/utils_recordTabUtils.js.html +++ b/documentation/html/utils_recordTabUtils.js.html @@ -257,7 +257,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/utils_rules.js.html b/documentation/html/utils_rules.js.html index fd71566cc4..0a45bd8bbb 100644 --- a/documentation/html/utils_rules.js.html +++ b/documentation/html/utils_rules.js.html @@ -248,7 +248,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/views_CreateRecord_NewRecord.vue.html b/documentation/html/views_CreateRecord_NewRecord.vue.html index 4b569f4d01..7864f308bb 100644 --- a/documentation/html/views_CreateRecord_NewRecord.vue.html +++ b/documentation/html/views_CreateRecord_NewRecord.vue.html @@ -394,7 +394,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/views_Home_Home.vue.html b/documentation/html/views_Home_Home.vue.html index 431a27d6bd..e913bf451e 100644 --- a/documentation/html/views_Home_Home.vue.html +++ b/documentation/html/views_Home_Home.vue.html @@ -196,7 +196,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/views_Records_Record.vue.html b/documentation/html/views_Records_Record.vue.html index 0b387664c9..a1e696db44 100644 --- a/documentation/html/views_Records_Record.vue.html +++ b/documentation/html/views_Records_Record.vue.html @@ -1293,7 +1293,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/views_Records_Records.vue.html b/documentation/html/views_Records_Records.vue.html index 8e9a6ca799..163b3754dd 100644 --- a/documentation/html/views_Records_Records.vue.html +++ b/documentation/html/views_Records_Records.vue.html @@ -458,7 +458,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/views_Static_Community_Community.vue.html b/documentation/html/views_Static_Community_Community.vue.html index 246c430ee5..f4b8ad60f7 100644 --- a/documentation/html/views_Static_Community_Community.vue.html +++ b/documentation/html/views_Static_Community_Community.vue.html @@ -902,7 +902,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/views_Static_Timeline_Timeline.vue.html b/documentation/html/views_Static_Timeline_Timeline.vue.html index 569fc74af7..c8b24affc7 100644 --- a/documentation/html/views_Static_Timeline_Timeline.vue.html +++ b/documentation/html/views_Static_Timeline_Timeline.vue.html @@ -154,7 +154,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/views_Users_Login_Login.vue.html b/documentation/html/views_Users_Login_Login.vue.html index 09f0d4ff38..7e793944a1 100644 --- a/documentation/html/views_Users_Login_Login.vue.html +++ b/documentation/html/views_Users_Login_Login.vue.html @@ -391,7 +391,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. diff --git a/documentation/html/views_Users_Signup.vue.html b/documentation/html/views_Users_Signup.vue.html index ed9f94e1fe..81d1298b40 100644 --- a/documentation/html/views_Users_Signup.vue.html +++ b/documentation/html/views_Users_Signup.vue.html @@ -150,7 +150,7 @@ Documentation generated by JSDoc 3.6.11 - on Wed Sep 27th 2023 + on Tue Oct 3rd 2023 using the DocStrap template. From 377a6bbc0d9455c01cc623dcbd4b48245e37fb86 Mon Sep 17 00:00:00 2001 From: Ramon Granell Date: Tue, 3 Oct 2023 13:04:16 +0100 Subject: [PATCH 3/5] removing a comment --- src/components/Records/Record/AdditionalInfo.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/Records/Record/AdditionalInfo.vue b/src/components/Records/Record/AdditionalInfo.vue index fe24b6bc27..155ff290bb 100644 --- a/src/components/Records/Record/AdditionalInfo.vue +++ b/src/components/Records/Record/AdditionalInfo.vue @@ -85,7 +85,6 @@ export default { } }, setAvailableData(selectedNode, key) { - (typeof selectedNode) // if received node is not an array if (!isArray(selectedNode)) { this.tempData[key] = [] From 2a74c7c3f408f0d5020e3dccf4f376fc0e9166a3 Mon Sep 17 00:00:00 2001 From: ramGranell <39826987+ramGranell@users.noreply.github.com> Date: Tue, 3 Oct 2023 14:19:12 +0100 Subject: [PATCH 4/5] Update src/components/Records/Record/AdditionalInfo.vue Co-authored-by: knirirr --- src/components/Records/Record/AdditionalInfo.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Records/Record/AdditionalInfo.vue b/src/components/Records/Record/AdditionalInfo.vue index 155ff290bb..32295bcd30 100644 --- a/src/components/Records/Record/AdditionalInfo.vue +++ b/src/components/Records/Record/AdditionalInfo.vue @@ -90,7 +90,7 @@ export default { this.tempData[key] = [] // Special case this is a string if (typeof selectedNode === 'string' ){ - this.tempData[key].push({"": selectedNode}) + this.tempData[key].push({"Value": selectedNode}) } else { Object.keys(selectedNode).forEach(item_key => { From 61b2f2cd96f2e0815c1da424efc8c81ee781acef Mon Sep 17 00:00:00 2001 From: ramGranell <39826987+ramGranell@users.noreply.github.com> Date: Tue, 3 Oct 2023 14:19:20 +0100 Subject: [PATCH 5/5] Update tests/unit/components/Records/Record/AdditionalInfo.spec.js Co-authored-by: knirirr --- tests/unit/components/Records/Record/AdditionalInfo.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/components/Records/Record/AdditionalInfo.spec.js b/tests/unit/components/Records/Record/AdditionalInfo.spec.js index 016713c37b..41890f223f 100644 --- a/tests/unit/components/Records/Record/AdditionalInfo.spec.js +++ b/tests/unit/components/Records/Record/AdditionalInfo.spec.js @@ -92,7 +92,7 @@ describe("AdditionalInfo.vue", function(){ ], "justString": [ { - "": "Hello" + "Value": "Hello" } ] });