Skip to content

Commit 50b0a88

Browse files
author
colinmcneil
committed
Fix missing registry showing an error
1 parent 8ff6001 commit 50b0a88

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/extension/ui/src/Registry.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ import { readFileInPromptsVolume, writeFileToPromptsVolume } from "./FileWatcher
55
export const getRegistry = async (client: v1.DockerDesktopClient) => {
66
const parseRegistry = async () => {
77
const registry = await readFileInPromptsVolume(client, 'registry.yaml')
8-
return parse(registry)['registry'] as Promise<{ [key: string]: { ref: string } }>;
8+
if (registry) {
9+
return parse(registry)['registry'] as Promise<{ [key: string]: { ref: string } }>;
10+
}
11+
return {};
912
}
1013
try {
1114
return await parseRegistry()

0 commit comments

Comments
 (0)