Skip to content

Commit 1e58eac

Browse files
committed
fix: add default status object when loading file store
1 parent dd0ff66 commit 1e58eac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fileStore/file-store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const AplObjectSchema = z.object({
2121
labels: z.record(z.string(), z.string()).optional(),
2222
}),
2323
spec: z.record(z.string(), z.any()),
24-
status: z.record(z.string(), z.any()).optional(),
24+
status: z.record(z.string(), z.any()).default({}),
2525
})
2626

2727
export function getTeamIdFromPath(filePath: string): string | undefined {

0 commit comments

Comments
 (0)