Update ModalTerminal.tsx #20

Merged
andrew.ng merged 1 commits from that into main 2025-11-28 13:00:42 +11:00
1 changed files with 4 additions and 0 deletions
Showing only changes of commit f70c553c7f - Show all commits

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;