Skip to content

Commit

Permalink
Add TODO comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Taitava committed Jan 28, 2024
1 parent 8cd23ee commit 7ba1a6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/models/prompt/prompt_fields/PromptField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ export class PromptField extends Instance {
// Type specific checks.
switch (this.configuration.type) {
case "single-choice":
if (Object.getOwnPropertyNames(this.configuration.choices).length < 2) {
if (Object.getOwnPropertyNames(this.configuration.choices).length < 2) { // FIXME: The check does not work, it always turns out as valid.
return `Dropdown field '${this.getTitle()}' must have at least two options.`;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/variables/loadVariables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export function loadVariables(plugin: SC_Plugin): VariableSet {
// Variables that are only designed for 'Shell commands test suite'.
built_in_variables.push(
new Variable_Newline(plugin),
new Variable_OperatingSystem(plugin),
new Variable_OperatingSystem(plugin), // TODO: Add to hidden settings documentation.
new Variable_Passthrough(plugin),
);
}
Expand Down

0 comments on commit 7ba1a6d

Please sign in to comment.