diff options
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/src/lib/components/Select.svelte | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/lib/components/Select.svelte b/frontend/src/lib/components/Select.svelte index 227959d..f7e87a4 100644 --- a/frontend/src/lib/components/Select.svelte +++ b/frontend/src/lib/components/Select.svelte @@ -18,10 +18,10 @@ export { inputId as id, valueAsObject as object, multiple as multi }; - function optionsPlaceholder(from: Value) { + function optionsPlaceholder(from: Value): Item[] { if (from === undefined || from === null) return []; - return Array.isArray(from) ? value : [value]; + return Array.isArray(from) ? from : [from]; } </script> |