File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
invokeai/frontend/web/src/services/api/endpoints Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,6 @@ export const imagesApi = api.injectEndpoints({
93
93
const boardId = imageDTO . board_id ?? 'none' ;
94
94
95
95
return [
96
- { type : 'Image' , id : imageDTO . image_name } ,
97
96
{
98
97
type : 'ImageList' ,
99
98
id : getListImagesUrl ( {
@@ -138,9 +137,6 @@ export const imagesApi = api.injectEndpoints({
138
137
id : boardId ,
139
138
} ,
140
139
] ;
141
- for ( const imageDTO of imageDTOs ) {
142
- tags . push ( { type : 'Image' , id : imageDTO . image_name } ) ;
143
- }
144
140
145
141
return tags ;
146
142
}
@@ -508,7 +504,6 @@ export const imagesApi = api.injectEndpoints({
508
504
export const {
509
505
useGetIntermediatesCountQuery,
510
506
useListImagesQuery,
511
- useGetImageDTOQuery,
512
507
useGetImageMetadataQuery,
513
508
useGetImageWorkflowQuery,
514
509
useLazyGetImageWorkflowQuery,
@@ -526,6 +521,10 @@ export const {
526
521
useBulkDownloadImagesMutation,
527
522
} = imagesApi ;
528
523
524
+ export const useGetImageDTOQuery = ( ...args : Parameters < typeof imagesApi . useGetImageDTOQuery > ) => {
525
+ return imagesApi . useGetImageDTOQuery ( ...args ) ;
526
+ } ;
527
+
529
528
/**
530
529
* Imperative RTKQ helper to fetch an ImageDTO.
531
530
* @param image_name The name of the image to fetch
You can’t perform that action at this time.
0 commit comments