From 46aa7ae74cc97581f584a399b181eaae1d6e0fe2 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Thu, 20 Oct 2022 13:38:09 +0200 Subject: [PATCH] flowtable: make sure rows are rendered on startup --- web/src/js/components/FlowTable.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/src/js/components/FlowTable.jsx b/web/src/js/components/FlowTable.jsx index 45f12e9d3..3dc3e4b40 100644 --- a/web/src/js/components/FlowTable.jsx +++ b/web/src/js/components/FlowTable.jsx @@ -34,6 +34,10 @@ class FlowTable extends React.Component { window.addEventListener('resize', this.onViewportUpdate) } + componentDidMount() { + this.onViewportUpdate(); + } + UNSAFE_componentWillUnmount() { window.removeEventListener('resize', this.onViewportUpdate) }