From 7ba1a6dab53f02b6f69a3d44334cf6cfdcd3f402 Mon Sep 17 00:00:00 2001 From: Jarkko Linnanvirta Date: Sun, 28 Jan 2024 12:50:44 +0200 Subject: [PATCH] Add TODO comments. --- src/models/prompt/prompt_fields/PromptField.ts | 2 +- src/variables/loadVariables.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/prompt/prompt_fields/PromptField.ts b/src/models/prompt/prompt_fields/PromptField.ts index 02e0e13..624339e 100644 --- a/src/models/prompt/prompt_fields/PromptField.ts +++ b/src/models/prompt/prompt_fields/PromptField.ts @@ -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.`; } } diff --git a/src/variables/loadVariables.ts b/src/variables/loadVariables.ts index a380927..813bf83 100644 --- a/src/variables/loadVariables.ts +++ b/src/variables/loadVariables.ts @@ -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), ); }