Merge pull request 'Update App.tsx' (#10) from that into main
Reviewed-on: #10
This commit is contained in:
commit
d1d77a3d9a
|
|
@ -80,7 +80,7 @@ function App() {
|
||||||
const [scenarios, setScenarios] = useState<IScenario[]>([]);
|
const [scenarios, setScenarios] = useState<IScenario[]>([]);
|
||||||
const [openModalTerminal, setOpenModalTerminal] = useState(false);
|
const [openModalTerminal, setOpenModalTerminal] = useState(false);
|
||||||
const [selectedLine, setSelectedLine] = useState<TLine | undefined>();
|
const [selectedLine, setSelectedLine] = useState<TLine | undefined>();
|
||||||
const [loadingTerminal, setLoadingTerminal] = useState(true);
|
const [loadingTerminal, setLoadingTerminal] = useState(false);
|
||||||
const [usersConnecting, setUsersConnecting] = useState<TUser[]>([]);
|
const [usersConnecting, setUsersConnecting] = useState<TUser[]>([]);
|
||||||
const [testLogContent, setTestLogContent] = useState("");
|
const [testLogContent, setTestLogContent] = useState("");
|
||||||
const [isLogModalOpen, setIsLogModalOpen] = useState(false);
|
const [isLogModalOpen, setIsLogModalOpen] = useState(false);
|
||||||
|
|
@ -201,6 +201,7 @@ function App() {
|
||||||
socket?.on("init", (data) => {
|
socket?.on("init", (data) => {
|
||||||
if (Array.isArray(data)) {
|
if (Array.isArray(data)) {
|
||||||
// console.log(data);
|
// console.log(data);
|
||||||
|
setLoadingTerminal(true);
|
||||||
data.forEach((value) => {
|
data.forEach((value) => {
|
||||||
updateValueLineStation(
|
updateValueLineStation(
|
||||||
value?.id,
|
value?.id,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue