diff --git a/package-lock.json b/package-lock.json index 09d75b9a..a2e2b657 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,10 +10,10 @@ "license": "Apache-2.0", "dependencies": { "@abi-software/flatmapvuer": "^1.6.0", - "@abi-software/map-side-bar": "^2.5.0", + "@abi-software/map-side-bar": "^2.5.1", "@abi-software/map-utilities": "^1.2.0", "@abi-software/plotvuer": "^1.0.3", - "@abi-software/scaffoldvuer": "^1.6.1", + "@abi-software/scaffoldvuer": "^1.6.2", "@abi-software/simulationvuer": "^1.0.1", "@abi-software/sparc-annotation": "0.3.1", "@abi-software/svg-sprite": "^1.0.1", @@ -132,9 +132,9 @@ } }, "node_modules/@abi-software/map-side-bar": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@abi-software/map-side-bar/-/map-side-bar-2.5.0.tgz", - "integrity": "sha512-UagI+zVV3H47RcY9ZkNqBfNqTwZowJu9Mmm661MbNoJbbF5HKpXOjv1RQ4erj+eGu5OakNBZuq3XT6zmTOhPRA==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@abi-software/map-side-bar/-/map-side-bar-2.5.1.tgz", + "integrity": "sha512-ZPQj75Jm2ekg/PCRNrG/dVSgYpHlr80Q+R9Gwn67euYJeM6GQq2ymopUVizzhSOFUA2uzHJilj8Clmgfm5CPhQ==", "dependencies": { "@abi-software/gallery": "^1.1.2", "@abi-software/map-utilities": "^1.2.0", @@ -180,9 +180,9 @@ } }, "node_modules/@abi-software/scaffoldvuer": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@abi-software/scaffoldvuer/-/scaffoldvuer-1.6.1.tgz", - "integrity": "sha512-Q/sWC2VlFRKx3RcqGbkCx4U4S+RLlT7A35d/QrAXUoABH9/Or4b+RKFYaMHxP7VNSJHOA4ExcAywcbVNsgZMZA==", + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/@abi-software/scaffoldvuer/-/scaffoldvuer-1.6.2.tgz", + "integrity": "sha512-Z9BvbDUrD5Ts2xVg7+ayj763/OvRHvYllPV/1iUQHucPZpjz4rk87KY5NXNMKuwA1eimeBg10LiWJLD7/BAIEA==", "dependencies": { "@abi-software/map-utilities": "^1.2.0", "@abi-software/sparc-annotation": "^0.3.1", diff --git a/package.json b/package.json index 3e2120aa..c64e64a0 100644 --- a/package.json +++ b/package.json @@ -51,10 +51,10 @@ ], "dependencies": { "@abi-software/flatmapvuer": "^1.6.0", - "@abi-software/map-side-bar": "^2.5.0", + "@abi-software/map-side-bar": "^2.5.1", "@abi-software/map-utilities": "^1.2.0", "@abi-software/plotvuer": "^1.0.3", - "@abi-software/scaffoldvuer": "^1.6.1", + "@abi-software/scaffoldvuer": "^1.6.2", "@abi-software/simulationvuer": "^1.0.1", "@abi-software/sparc-annotation": "0.3.1", "@abi-software/svg-sprite": "^1.0.1", diff --git a/src/components/SplitFlow.vue b/src/components/SplitFlow.vue index 5fac5b62..fcee4766 100644 --- a/src/components/SplitFlow.vue +++ b/src/components/SplitFlow.vue @@ -280,7 +280,12 @@ export default { const activeContents = splitdialog.getActiveContents(); //Push new suggestions into the pre-existing suggestions array activeContents.forEach(content => content.searchSuggestions(payload.data.term, suggestions)); - const unique = new Set(suggestions); + const parsed = []; + //Remove double quote as it is used as a speical character + suggestions.forEach(suggestion => { + parsed.push(suggestion.replaceAll("\"", "")); + }); + const unique = new Set(parsed); suggestions.length = 0; for (const item of unique) { suggestions.push({"value": "\"" + item +"\""}); diff --git a/src/components/viewers/Scaffold.vue b/src/components/viewers/Scaffold.vue index 3add37d9..40124a1c 100644 --- a/src/components/viewers/Scaffold.vue +++ b/src/components/viewers/Scaffold.vue @@ -72,9 +72,7 @@ export default { * Perform a local search on this contentvuer */ search: function (term) { - //Remove first and last letter if they are double quote - const parsed = term.replace(/(^"|"$)/g, ''); - return this.$refs.scaffold.search(parsed, true); + return this.$refs.scaffold.search(term, true); }, searchSuggestions: function(term, suggestions){ if (term === "" || !this.$refs.scaffold) {