Skip to content

Commit 6545c37

Browse files
authored
Fix settings page (kubeflow#1285)
Signed-off-by: lucferbux <[email protected]>
1 parent 126945b commit 6545c37

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clients/ui/frontend/src/__tests__/cypress/cypress/tests/mocked/modelRegistrySettings/modelRegistrySettings.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const initIntercepts = ({
4444
{
4545
path: { apiVersion: MODEL_REGISTRY_API_VERSION },
4646
},
47-
[],
47+
{ items: [] },
4848
);
4949
};
5050

clients/ui/frontend/src/app/api/k8s.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ export const getRoleBindings =
9292
opts,
9393
),
9494
).then((response) => {
95-
if (isModArchResponse<RoleBindingKind[]>(response)) {
96-
return response.data;
95+
if (isModArchResponse<{ items: RoleBindingKind[] }>(response)) {
96+
return response.data.items;
9797
}
9898
throw new Error('Invalid response format');
9999
});

0 commit comments

Comments
 (0)