fix(ui): minor jank when siwtching images rapidly

This commit is contained in:
psychedelicious
2025-06-25 01:10:49 +10:00
parent 7080889ed4
commit bf5fc9512d

View File

@@ -661,7 +661,7 @@ export const imageDTOToFile = async (imageDTO: ImageDTO): Promise<File> => {
};
export const useImageDTO = (imageName: string | null | undefined) => {
const { currentData: imageDTO } = useGetImageDTOQuery(imageName ?? skipToken);
const { data: imageDTO } = useGetImageDTOQuery(imageName ?? skipToken);
return imageDTO ?? null;
};