🤺 ComicVine matching in drawer UX fixed

This commit is contained in:
2026-03-26 20:50:27 -04:00
parent 4e2cad790b
commit 0e8f63101c

View File

@@ -4,6 +4,7 @@ import { convert } from "html-to-text";
import ellipsize from "ellipsize"; import ellipsize from "ellipsize";
import { LIBRARY_SERVICE_BASE_URI } from "../../constants/endpoints"; import { LIBRARY_SERVICE_BASE_URI } from "../../constants/endpoints";
import axios from "axios"; import axios from "axios";
import { useGetComicByIdQuery } from "../../graphql/generated";
interface MatchResultProps { interface MatchResultProps {
matchData: any; matchData: any;
@@ -31,7 +32,7 @@ export const MatchResult = (props: MatchResultProps) => {
// Invalidate and refetch the comic book metadata // Invalidate and refetch the comic book metadata
if (props.queryClient) { if (props.queryClient) {
await props.queryClient.invalidateQueries({ await props.queryClient.invalidateQueries({
queryKey: ["comicBookMetadata", comicObjectId], queryKey: useGetComicByIdQuery.getKey({ id: comicObjectId }),
}); });
} }