Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
added changes to KPIsearch on KPI delete
Browse files Browse the repository at this point in the history
  • Loading branch information
ChartistDev committed Jun 20, 2022
1 parent f353bfc commit 223c72b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions frontend/src/components/KPITable/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const KPITable = ({
changeData,
pagination,
pgInfo,
setKpiSearch,
setPgInfo
}) => {
const connectionType = useContext(connectionContext);
Expand Down Expand Up @@ -67,7 +66,7 @@ const KPITable = ({
header: 'KPI deleted successfully',
description: kpiDisableData.message
});
setKpiSearch('');
changeData((prev) => !prev);
} else if (kpiDisableData && kpiDisableData.status === 'failed') {
customToast({
type: 'error',
Expand Down
1 change: 0 additions & 1 deletion frontend/src/containers/KpiExplorer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ const KpiExplorer = () => {
<div className="table-section">
<KPITable
kpiData={kpiExplorerData}
setKpiSearch={setKpiSearch}
kpiSearch={kpiSearch}
changeData={setData}
kpiLoading={isLoading}
Expand Down

0 comments on commit 223c72b

Please sign in to comment.