Skip to content

Commit c37560c

Browse files
committed
fix select box option detection
1 parent 9719a81 commit c37560c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/notebooks/deepnote/selectInputSettingsWebview.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ export class SelectInputSettingsWebviewProvider {
103103
allowMultipleValues: (metadata?.deepnote_allow_multiple_values as boolean) ?? false,
104104
allowEmptyValue: (metadata?.deepnote_allow_empty_values as boolean) ?? false,
105105
selectType: (metadata?.deepnote_variable_select_type as 'from-options' | 'from-variable') ?? 'from-options',
106-
options: (metadata?.deepnote_variable_custom_options as string[]) ?? [],
106+
options:
107+
(metadata?.deepnote_variable_custom_options as string[]) ??
108+
(metadata?.deepnote_variable_options as string[]) ??
109+
[],
107110
selectedVariable: (metadata?.deepnote_variable_selected_variable as string) ?? ''
108111
};
109112

0 commit comments

Comments
 (0)