Skip to content

Commit 88846c5

Browse files
Copilotlstein
andcommitted
Fix cache invalidation after deleting orphaned models
Co-authored-by: lstein <111189+lstein@users.noreply.github.com>
1 parent d374680 commit 88846c5

File tree

1 file changed

+2
-0
lines changed
  • invokeai/frontend/web/src/services/api/endpoints

1 file changed

+2
-0
lines changed

invokeai/frontend/web/src/services/api/endpoints/models.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,13 +382,15 @@ export const modelsApi = api.injectEndpoints({
382382
url: buildModelsUrl('sync/orphaned'),
383383
method: 'GET',
384384
}),
385+
providesTags: ['OrphanedModels'],
385386
}),
386387
deleteOrphanedModels: build.mutation<DeleteOrphanedModelsResponse, DeleteOrphanedModelsArg>({
387388
query: (arg) => ({
388389
url: buildModelsUrl('sync/orphaned'),
389390
method: 'DELETE',
390391
body: arg,
391392
}),
393+
invalidatesTags: ['OrphanedModels'],
392394
}),
393395
}),
394396
});

0 commit comments

Comments
 (0)