Skip to content

Commit

Permalink
return undefined instead of null when no default
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-byrne committed Feb 4, 2025
1 parent 07b6266 commit 18bb370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/widgetStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const useWidgetStore = defineStore('widget', () => {

if (widgetType === 'COMBO' && props.options?.length) return props.options[0]
if (props.type === 'remote') return 'Loading...'
return null
return undefined
}

const transformComboInput = (inputData: InputSpec): ComboInputSpecV2 => {
Expand Down

0 comments on commit 18bb370

Please sign in to comment.