Merge pull request 'Update ModalTerminal.tsx' (#20) from that into main
Reviewed-on: #20
This commit is contained in:
commit
1bb7066348
|
|
@ -86,6 +86,10 @@ const ModalTerminal = ({
|
|||
}
|
||||
}, [opened, line?.tickets]);
|
||||
|
||||
useEffect(() => {
|
||||
setListPorts([]);
|
||||
}, [stationItem?.id]);
|
||||
|
||||
useEffect(() => {
|
||||
socket?.on("switch_ports_status", (data) => {
|
||||
if (data.stationId !== stationItem?.id) return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue