Skip to content

Commit

Permalink
feat: label here cannot be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
joannaWebDev committed Dec 13, 2024
1 parent b18345b commit 9d8f83b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/scenes/src/variables/groupby/GroupByVariable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,9 @@ export function GroupByVariableRenderer({ model }: SceneComponentProps<MultiValu
}
return;
}
if (newValue?.value && newValue?.label) {
if (newValue?.value) {
setUncommittedValue([newValue]);
model.changeValueTo([newValue.value], [newValue.label]);
model.changeValueTo([newValue.value], [newValue.label!]);
}
}}
onOpenMenu={async () => {
Expand Down

0 comments on commit 9d8f83b

Please sign in to comment.