Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcreasy committed Jun 14, 2024
1 parent 6fb3fd8 commit bb4a0a9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions frontend/src/concepts/metrics/kserve/KserveMetricsContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ export const KserveMetricsContextProvider = conditionalArea<KserveMetricsContext
);
}

if (!loaded) {
return (
<Bullseye>
<Spinner />
</Bullseye>
);
}

if (!supported) {
return (
<EmptyState>
Expand All @@ -110,14 +118,6 @@ export const KserveMetricsContextProvider = conditionalArea<KserveMetricsContext
);
}

if (!loaded) {
return (
<Bullseye>
<Spinner />
</Bullseye>
);
}

return (
<KserveMetricsContext.Provider value={contextValue}>{children}</KserveMetricsContext.Provider>
);
Expand Down

0 comments on commit bb4a0a9

Please sign in to comment.