Skip to content

Commit b75c958

Browse files
author
colinmcneil
committed
Remove unused image load and syncs
1 parent d42ec1c commit b75c958

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/extension/ui/src/queries/useCatalog.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,6 @@ export function useCatalogOperations(client: v1.DockerDesktopClient) {
247247

248248
await tryRunImageSync(client, ['--rm', '-v', 'docker-prompts:/docker-prompts', '--workdir', '/docker-prompts', 'vonwig/function_write_files:latest', 'registry.yaml', payload]);
249249

250-
await syncConfigWithRegistry(newRegistry);
251-
await loadAllImages();
252-
253250
if (showNotification) {
254251
client.desktopUI.toast.success(`${item.name} registered successfully.`);
255252
}
@@ -284,8 +281,6 @@ export function useCatalogOperations(client: v1.DockerDesktopClient) {
284281

285282
await tryRunImageSync(client, ['--rm', '-v', 'docker-prompts:/docker-prompts', '--workdir', '/docker-prompts', 'vonwig/function_write_files:latest', 'registry.yaml', payload]);
286283

287-
// Explicitly sync the registry with config
288-
await syncConfigWithRegistry(currentRegistry);
289284
client.desktopUI.toast.success(`${item.name} unregistered successfully.`);
290285
return { success: true, newRegistry: currentRegistry };
291286
} catch (error) {

0 commit comments

Comments
 (0)