Skip to content

Commit

Permalink
fix(FR-470): Unable to access service update page
Browse files Browse the repository at this point in the history
  • Loading branch information
yomybaby authored and ironAiken2 committed Feb 7, 2025
1 parent 71732dc commit dd7faf6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
10 changes: 9 additions & 1 deletion react/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,15 @@ const router = createBrowserRouter([
handle: { labelKey: 'modelService.UpdateService' },
element: (
<BAIErrorBoundary>
<ServiceLauncherUpdatePage />
<Suspense
fallback={
<Flex direction="column" style={{ maxWidth: 700 }}>
<Skeleton active />
</Flex>
}
>
<ServiceLauncherUpdatePage />
</Suspense>
</BAIErrorBoundary>
),
},
Expand Down
1 change: 1 addition & 0 deletions react/src/pages/EndpointDetailPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ const EndpointDetailPage: React.FC<EndpointDetailPageProps> = () => {
...EndpointOwnerInfoFragment
...EndpointStatusTagFragment
...ChatUIModalFragment
...ServiceLauncherPageContentFragment
}
endpoint_token_list(
offset: $tokenListOffset
Expand Down
2 changes: 1 addition & 1 deletion react/src/pages/ServiceLauncherPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const ServiceLauncherPage: React.FC = () => {
endpointId: endpointId || '',
},
{
fetchPolicy: 'network-only',
fetchPolicy: 'store-and-network',
},
);

Expand Down

0 comments on commit dd7faf6

Please sign in to comment.