Skip to content

Commit

Permalink
postpone tick if drawer not rendered (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinsonneau authored Oct 10, 2024
1 parent 3d8481a commit b7fdf62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/src/components/netflow-traffic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,10 @@ export const NetflowTraffic: React.FC<NetflowTrafficProps> = ({
// also skip tick if modal is open
console.debug('tick skipped since modal is open');
return;
} else if (drawerRef.current == null) {
console.debug('tick called before drawer rendering. Retrying after render');
setTimeout(tick);
return;
}

model.setLoading(true);
Expand Down

0 comments on commit b7fdf62

Please sign in to comment.