Update App.tsx #10

Merged
andrew.ng merged 1 commits from that into main 2025-11-25 20:13:15 +11:00
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,7 @@ function App() {
const [scenarios, setScenarios] = useState<IScenario[]>([]);
const [openModalTerminal, setOpenModalTerminal] = useState(false);
const [selectedLine, setSelectedLine] = useState<TLine | undefined>();
const [loadingTerminal, setLoadingTerminal] = useState(true);
const [loadingTerminal, setLoadingTerminal] = useState(false);
const [usersConnecting, setUsersConnecting] = useState<TUser[]>([]);
const [testLogContent, setTestLogContent] = useState("");
const [isLogModalOpen, setIsLogModalOpen] = useState(false);
@ -201,6 +201,7 @@ function App() {
socket?.on("init", (data) => {
if (Array.isArray(data)) {
// console.log(data);
setLoadingTerminal(true);
data.forEach((value) => {
updateValueLineStation(
value?.id,