From f9bead0257bc4c3377c094e7829383b7c3e11529 Mon Sep 17 00:00:00 2001 From: InfiniteStash <117855276+InfiniteStash@users.noreply.github.com> Date: Tue, 27 Feb 2024 10:05:31 +0100 Subject: [PATCH] Fix unnecessary tag filter lookup (#763) --- frontend/src/components/tagFilter/TagFilter.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/tagFilter/TagFilter.tsx b/frontend/src/components/tagFilter/TagFilter.tsx index 9fd11754a..aaaa2bcd1 100644 --- a/frontend/src/components/tagFilter/TagFilter.tsx +++ b/frontend/src/components/tagFilter/TagFilter.tsx @@ -35,7 +35,7 @@ const TagFilter: FC = ({ 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) => {