Skip to content

Commit

Permalink
Quick update for the suggester in prompt: takes best suggestion > input
Browse files Browse the repository at this point in the history
  • Loading branch information
chhoumann committed Sep 22, 2021
1 parent 5477b16 commit 95e9fc6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "metaedit",
"name": "MetaEdit",
"version": "1.7.0",
"version": "1.7.1",
"minAppVersion": "0.12.0",
"description": "MetaEdit helps you manage your metadata.",
"author": "Christian B. B. Houmann",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "metaedit",
"version": "1.7.0",
"version": "1.7.1",
"description": "MetaEdit helps you manage your metadata.",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/Modals/GenericPrompt/genericTextSuggester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class GenericTextSuggester extends TextInputSuggest<string> {
});

if (!filtered) this.close();
if (filtered?.length === 1) return [inputStr, ...filtered]
if (filtered?.length === 1) return [...filtered, inputStr];
if (filtered?.length > 1) return filtered;
}

Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"1.7.0": "0.12.0"
"1.7.1": "0.12.0"
}

0 comments on commit 95e9fc6

Please sign in to comment.