flowtable: make sure rows are rendered on startup

This commit is contained in:
Maximilian Hils 2022-10-20 13:38:09 +02:00
parent 3dffdc2261
commit 46aa7ae74c
1 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,10 @@ class FlowTable extends React.Component {
window.addEventListener('resize', this.onViewportUpdate)
}
componentDidMount() {
this.onViewportUpdate();
}
UNSAFE_componentWillUnmount() {
window.removeEventListener('resize', this.onViewportUpdate)
}