From 54632efa79593f5e2a4df2219e8526f60d8585ca Mon Sep 17 00:00:00 2001 From: Georgy Karataev Date: Fri, 10 Jun 2022 13:22:24 +0200 Subject: [PATCH] fix(Cluster reports): fix infinite table re-render when there are no rules (#315) Fixes https://issues.redhat.com/browse/CCXDEV-8272. --- src/Components/ClusterRules/ClusterRules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/ClusterRules/ClusterRules.js b/src/Components/ClusterRules/ClusterRules.js index 0bcfdf53..a95af518 100644 --- a/src/Components/ClusterRules/ClusterRules.js +++ b/src/Components/ClusterRules/ClusterRules.js @@ -105,7 +105,7 @@ const ClusterRules = ({ cluster }) => { useEffect(() => { setFilteredRows(buildFilteredRows(reports, filters)); - }, [reports, filters]); + }, [data, filters]); useEffect(() => { setDisplayedRows(