Skip to content

Commit a277965

Browse files
committed
Fix Cypress tests
Signed-off-by: manaswinidas <[email protected]>
1 parent c710487 commit a277965

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clients/ui/frontend/src/app/pages/modelCatalog/components/ModelCatalogCardBody.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const ModelCatalogCardBody: React.FC<ModelCatalogCardBodyProps> = ({
7373
},
7474
filterData,
7575
filterOptions,
76-
isValidated && performanceViewEnabled, // Only fetch if validated AND toggle is ON
76+
isValidated, // Only fetch if validated
7777
);
7878

7979
const performanceMetrics = filterArtifactsByType<CatalogPerformanceMetricsArtifact>(
@@ -88,13 +88,13 @@ const ModelCatalogCardBody: React.FC<ModelCatalogCardBodyProps> = ({
8888
MetricsType.accuracyMetrics,
8989
);
9090

91-
const isLoading = isValidated && performanceViewEnabled && !performanceArtifactsLoaded;
91+
const isLoading = isValidated && !performanceArtifactsLoaded;
9292

9393
if (isLoading) {
9494
return <Spinner />;
9595
}
9696

97-
if (performanceArtifactsError && isValidated && performanceViewEnabled) {
97+
if (performanceArtifactsError && isValidated) {
9898
return (
9999
<Alert variant="danger" isInline title={performanceArtifactsError.name}>
100100
{performanceArtifactsError.message}

0 commit comments

Comments
 (0)