Skip to content

Commit

Permalink
add selector for default visibility labels
Browse files Browse the repository at this point in the history
  • Loading branch information
sashankaryal committed Dec 3, 2024
1 parent 03edeb8 commit 98e2809
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/packages/state/src/recoil/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,15 @@ export const datasetAppConfig = graphQLSyncFragmentAtom<
}
);

export const defaultVisibilityLabels =
selector<State.DefaultVisibilityLabelsConfig>({
key: "defaultVisibilityLabels",
get: ({ get }) => {
return get(datasetAppConfig)
.defaultVisibilityLabels as State.DefaultVisibilityLabelsConfig | null;
},
});

export const disableFrameFiltering = selector<boolean>({
key: "disableFrameFiltering",
get: ({ get }) => {
Expand Down

0 comments on commit 98e2809

Please sign in to comment.