Update App.tsx
This commit is contained in:
parent
608b63f203
commit
1a77075145
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue