diff --git a/src/ui/React/PromptManager.tsx b/src/ui/React/PromptManager.tsx index de16b38a4..66b83522e 100644 --- a/src/ui/React/PromptManager.tsx +++ b/src/ui/React/PromptManager.tsx @@ -139,6 +139,10 @@ function PromptMenuSelect({ prompt, resolve }: IContentProps): React.ReactElemen return content; }; + if (!Array.isArray(prompt?.options?.choices)) { + return Error: Please provide an array of string choices; + } + return ( <>