Skip to content

Commit 83cf753

Browse files
AlexEijssenalex.eijssen
andauthored
fix: UI error when saved dataset is present in registry. (#3124)
Adding optionals to dataset parser. Signed-off-by: alex.eijssen <alex.eijssen@energyessentials.nl> Signed-off-by: alex.eijssen <alex.eijssen@energyessentials.nl> Co-authored-by: alex.eijssen <alex.eijssen@energyessentials.nl>
1 parent 7ca4c23 commit 83cf753

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ui/src/parsers/feastSavedDataset.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ const FeastSavedDatasetSchema = z.object({
88
storage: z.object({
99
fileStorage: z.object({
1010
fileFormat: z.object({
11-
parquestFormat: z.object({}).optional(),
12-
}),
11+
parquetFormat: z.object({}).optional(),
12+
}).optional(),
1313
fileUrl: z.string(),
14-
}),
15-
}),
14+
}).optional(),
15+
}).optional(),
1616
featureService: z
1717
.object({
1818
spec: z.object({
@@ -21,7 +21,7 @@ const FeastSavedDatasetSchema = z.object({
2121
})
2222
.transform((obj) => {
2323
return obj.spec.name;
24-
}),
24+
}).optional(),
2525
profile: z.string().optional(),
2626
}),
2727
meta: z.object({

0 commit comments

Comments
 (0)