fix active highlight

This commit is contained in:
Robin Appelman 2022-09-04 16:10:51 +02:00
commit ba6380c558

View file

@ -68,6 +68,7 @@ export class App extends Component<{}, AppState> {
}, 500) }, 500)
selectPacket = (packet: number) => { selectPacket = (packet: number) => {
this.setState({activeIndex: packet});
this.state.worker.get(packet).then(packet => this.setState({active: packet})); this.state.worker.get(packet).then(packet => this.setState({active: packet}));
} }