🤺 ComicVine matching in drawer UX fixed
This commit is contained in:
@@ -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 }),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user