fix(ui): remove weird rtkq hook wrapper

I do not understand why I did that initially but it doesn't work with TS.
This commit is contained in:
psychedelicious 2024-07-17 10:50:20 +10:00
parent ff68901e89
commit 56237328f1

View File

@ -549,6 +549,7 @@ export const imagesApi = api.injectEndpoints({
export const { export const {
useGetIntermediatesCountQuery, useGetIntermediatesCountQuery,
useListImagesQuery, useListImagesQuery,
useGetImageDTOQuery,
useGetImageMetadataQuery, useGetImageMetadataQuery,
useGetImageWorkflowQuery, useGetImageWorkflowQuery,
useLazyGetImageWorkflowQuery, useLazyGetImageWorkflowQuery,
@ -566,10 +567,6 @@ export const {
useBulkDownloadImagesMutation, useBulkDownloadImagesMutation,
} = imagesApi; } = imagesApi;
export const useGetImageDTOQuery = (...args: Parameters<typeof imagesApi.useGetImageDTOQuery>) => {
return imagesApi.useGetImageDTOQuery(...args);
};
/** /**
* Imperative RTKQ helper to fetch an ImageDTO. * Imperative RTKQ helper to fetch an ImageDTO.
* @param image_name The name of the image to fetch * @param image_name The name of the image to fetch