Skip to content

Commit

Permalink
fix: UI error when saved dataset is present in registry. (#3124)
Browse files Browse the repository at this point in the history
Adding optionals to dataset parser.

Signed-off-by: alex.eijssen <[email protected]>

Signed-off-by: alex.eijssen <[email protected]>
Co-authored-by: alex.eijssen <[email protected]>
  • Loading branch information
AlexEijssen and alex.eijssen authored Aug 23, 2022
1 parent 7ca4c23 commit 83cf753
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ui/src/parsers/feastSavedDataset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ const FeastSavedDatasetSchema = z.object({
storage: z.object({
fileStorage: z.object({
fileFormat: z.object({
parquestFormat: z.object({}).optional(),
}),
parquetFormat: z.object({}).optional(),
}).optional(),
fileUrl: z.string(),
}),
}),
}).optional(),
}).optional(),
featureService: z
.object({
spec: z.object({
Expand All @@ -21,7 +21,7 @@ const FeastSavedDatasetSchema = z.object({
})
.transform((obj) => {
return obj.spec.name;
}),
}).optional(),
profile: z.string().optional(),
}),
meta: z.object({
Expand Down

0 comments on commit 83cf753

Please sign in to comment.