Skip to content

Commit

Permalink
fix: Check for non-null and non-undefined spec of a project to mitiga…
Browse files Browse the repository at this point in the history
…te errors in UI builds
  • Loading branch information
boliri committed Nov 21, 2024
1 parent 27ad768 commit 2c09fea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/src/FeastUISansProviders.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ test("full app rendering", async () => {
expect(screen.getByText(/Explore this Project/i)).toBeInTheDocument();

const projectNameRegExp = new RegExp(
parsedRegistry.projects[0].spec.name!,
parsedRegistry.projects[0].spec?.name!,
"i"
);

Expand Down
2 changes: 1 addition & 1 deletion ui/src/queries/useLoadRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const useLoadRegistry = (url: string) => {
// });

return {
project: objects.projects[0].spec.name!,
project: objects.projects[0].spec?.name!,
objects,
mergedFVMap,
mergedFVList,
Expand Down

0 comments on commit 2c09fea

Please sign in to comment.