Skip to content

Commit

Permalink
Merge pull request #256 from alan-wu/v1.6-patch
Browse files Browse the repository at this point in the history
V1.6 patch
  • Loading branch information
alan-wu authored Nov 14, 2024
2 parents fe4552e + 9d1d941 commit ad9930b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 6 additions & 1 deletion src/components/SplitFlow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 +"\""});
Expand Down
4 changes: 1 addition & 3 deletions src/components/viewers/Scaffold.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ad9930b

Please sign in to comment.