Skip to content

Commit

Permalink
Update for test
Browse files Browse the repository at this point in the history
  • Loading branch information
joey-grafana committed Jan 14, 2025
1 parent d422732 commit 557c612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Explore/actions/AddToFiltersAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class AddToFiltersAction extends SceneObjectBase<AddToFiltersActionState>

public static Component = ({ model }: SceneComponentProps<AddToFiltersAction>) => {
const key = model.state?.labelKey ?? '';
const value = model.state.frame.fields.filter(x => x.type !== 'time')[0].labels?.[key] ?? '';
const value = model.state?.frame.fields.filter(x => x.type !== 'time')[0].labels?.[key] ?? '';
const filterExists = filterExistsForKey(getFiltersVariable(model), key, value.replace(/"/g, ''));

if (!filterExists) {
Expand Down

0 comments on commit 557c612

Please sign in to comment.