Skip to content

Commit

Permalink
Fix type error.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMauderer committed Feb 27, 2024
1 parent 2591c45 commit a044950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/gui2/src/providers/widgetRegistry/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export interface SingleChoice {
kind: 'Single_Choice'
label: string | null
values: Choice[]
showArrow: boolean
showArrow: boolean | undefined
}

/** Dynamic configuration for a function call with a list of arguments with known dynamic configuration.
Expand Down Expand Up @@ -203,6 +203,6 @@ export function singleChoiceConfiguration(config: SingleChoice): OneOfFunctionCa
possibleFunctions: new Map(
config.values.map((value) => [value.value, functionCallConfiguration(value.parameters)]),
),
showArrow: config.showArrow,
showArrow: config.showArrow ?? false,
}
}

0 comments on commit a044950

Please sign in to comment.