From 713f8a527000b4ad095e7e6c37f5690076adc012 Mon Sep 17 00:00:00 2001 From: lavanya-bmw <106523828+lavanya-bmw@users.noreply.github.com> Date: Thu, 24 Oct 2024 19:49:01 +0530 Subject: [PATCH] fix(semantic hub): fix filters (#1273) --- CHANGELOG.md | 2 ++ src/components/pages/SemanticHub/ModelTable.tsx | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 18ab6f9cc..0fc1e7102 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ - **Technical User Management** - fixed usertype column to display data from API [#1253](https://github.com/eclipse-tractusx/portal-frontend/pull/1253) +- **Semantic Hub** + - Fixed semantic hub data on click of filters and on click on refresh icon [#1273](https://github.com/eclipse-tractusx/portal-frontend/pull/1273) ## 2.3.0-alpha.3 diff --git a/src/components/pages/SemanticHub/ModelTable.tsx b/src/components/pages/SemanticHub/ModelTable.tsx index 9c0a76750..8de17ecd8 100644 --- a/src/components/pages/SemanticHub/ModelTable.tsx +++ b/src/components/pages/SemanticHub/ModelTable.tsx @@ -193,7 +193,13 @@ const ModelTable = ({ onModelSelect }: ModelTableProps) => { error={errorObj} reload={() => dispatch( - fetchSemanticModels({ filter: { page: 0, pageSize: rowCount } }) + fetchSemanticModels({ + filter: { + page: 0, + pageSize: rowCount, + status: selectedFilter.status[0], + }, + }) ) } noRowsMsg={t('global.noData.heading')}