From 8177efd76b35ebca125974e36655c9cd19d6bb4f Mon Sep 17 00:00:00 2001 From: Ryan Goetz Date: Tue, 3 Sep 2024 10:05:24 -1000 Subject: [PATCH] Fix bug with auto-complete * var_strings don't add "" if a default value isn't available --- src/utilities/sequence-editor/command-dictionary.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utilities/sequence-editor/command-dictionary.ts b/src/utilities/sequence-editor/command-dictionary.ts index df62e3b363..04feaaf74b 100644 --- a/src/utilities/sequence-editor/command-dictionary.ts +++ b/src/utilities/sequence-editor/command-dictionary.ts @@ -134,7 +134,7 @@ export function fswCommandArgDefault(fswCommandArg: FswCommandArgument, enumMap: const varStringArg = fswCommandArg as FswCommandArgumentVarString; const { default_value } = varStringArg; - if (default_value !== null) { + if (default_value) { return default_value; } else { return '""';