Merge pull request 'Update ModalTerminal.tsx' (#20) from that into main

Reviewed-on: #20
This commit is contained in:
andrew.ng 2025-11-28 13:00:41 +11:00
commit 1bb7066348
1 changed files with 4 additions and 0 deletions

View File

@ -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;