From 56237328f11e71c73635632af684723cd4f84ce0 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Wed, 17 Jul 2024 10:50:20 +1000 Subject: [PATCH] fix(ui): remove weird rtkq hook wrapper I do not understand why I did that initially but it doesn't work with TS. --- invokeai/frontend/web/src/services/api/endpoints/images.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/invokeai/frontend/web/src/services/api/endpoints/images.ts b/invokeai/frontend/web/src/services/api/endpoints/images.ts index 9ba144ecd8..43b6347b5f 100644 --- a/invokeai/frontend/web/src/services/api/endpoints/images.ts +++ b/invokeai/frontend/web/src/services/api/endpoints/images.ts @@ -549,6 +549,7 @@ export const imagesApi = api.injectEndpoints({ export const { useGetIntermediatesCountQuery, useListImagesQuery, + useGetImageDTOQuery, useGetImageMetadataQuery, useGetImageWorkflowQuery, useLazyGetImageWorkflowQuery, @@ -566,10 +567,6 @@ export const { useBulkDownloadImagesMutation, } = imagesApi; -export const useGetImageDTOQuery = (...args: Parameters) => { - return imagesApi.useGetImageDTOQuery(...args); -}; - /** * Imperative RTKQ helper to fetch an ImageDTO. * @param image_name The name of the image to fetch