Skip to content

Commit

Permalink
Fix unnecessary tag filter lookup (#763)
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteStash committed Feb 27, 2024
1 parent 65cf377 commit f9bead0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/tagFilter/TagFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const TagFilter: FC<TagFilterProps> = ({
allowDeleted = false,
}) => {
const client = useApolloClient();
const { data: tagData } = useTag({ id: tagId });
const { data: tagData } = useTag({ id: tagId }, !tagId);
const selectedTag = tagData?.findTag;

const handleChange = (result: OnChangeValue<SearchResult, false>) => {
Expand Down

0 comments on commit f9bead0

Please sign in to comment.