Skip to content

Commit

Permalink
fix: wrap single-select value in an array
Browse files Browse the repository at this point in the history
  • Loading branch information
joannaWebDev committed Dec 13, 2024
1 parent 639cac0 commit cf2cb04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/scenes/src/variables/groupby/GroupByVariable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,10 @@ export function GroupByVariableRenderer({ model }: SceneComponentProps<MultiValu
}
if (newValue?.value) {
setUncommittedValue([newValue]);
model.changeValueTo(newValue.value, newValue.label);
model.changeValueTo([newValue.value]);
}
}}

onOpenMenu={async () => {
setIsFetchingOptions(true);
await lastValueFrom(model.validateAndUpdate());
Expand Down

0 comments on commit cf2cb04

Please sign in to comment.