Skip to content

Commit 679c47e

Browse files
authored
Avoid unnecessary request when opening entity tables (streams, dashboards, etc.). (#24402)
1 parent 994cc85 commit 679c47e

File tree

1 file changed

+1
-1
lines changed
  • graylog2-web-interface/src/components/common/PaginatedEntityTable

1 file changed

+1
-1
lines changed

graylog2-web-interface/src/components/common/PaginatedEntityTable/useOnRefresh.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import AutoRefreshContext from 'views/components/contexts/AutoRefreshContext';
2121
const useOnRefresh = (fn: () => void) => {
2222
const context = useContext(AutoRefreshContext);
2323
useEffect(() => {
24-
if (context?.animationId !== null) {
24+
if (context?.animationId !== null && context?.animationId !== undefined) {
2525
fn();
2626
}
2727
}, [context?.animationId, fn]);

0 commit comments

Comments
 (0)