Skip to content

Commit 2c09fea

Browse files
committed
fix: Check for non-null and non-undefined spec of a project to mitigate errors in UI builds
1 parent 27ad768 commit 2c09fea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ui/src/FeastUISansProviders.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ test("full app rendering", async () => {
5555
expect(screen.getByText(/Explore this Project/i)).toBeInTheDocument();
5656

5757
const projectNameRegExp = new RegExp(
58-
parsedRegistry.projects[0].spec.name!,
58+
parsedRegistry.projects[0].spec?.name!,
5959
"i"
6060
);
6161

ui/src/queries/useLoadRegistry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const useLoadRegistry = (url: string) => {
5252
// });
5353

5454
return {
55-
project: objects.projects[0].spec.name!,
55+
project: objects.projects[0].spec?.name!,
5656
objects,
5757
mergedFVMap,
5858
mergedFVList,

0 commit comments

Comments
 (0)