From e25a5d2116f699de795fccf039c7a911eeff8dfe Mon Sep 17 00:00:00 2001 From: Ivan Date: Mon, 8 Apr 2024 02:08:06 +0800 Subject: [PATCH] click play to start simulation --- web/src/components/RenderLevel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/RenderLevel.tsx b/web/src/components/RenderLevel.tsx index 5ac19bb..08026d0 100644 --- a/web/src/components/RenderLevel.tsx +++ b/web/src/components/RenderLevel.tsx @@ -30,7 +30,7 @@ async function getData(sim_id: string, fromIndex: number) { // eslint-disable-next-line @typescript-eslint/no-explicit-any const RenderLevel: React.FC<{ simId: string, map?: string | null, img?: string | null, hidePanel: boolean }> = ({ simId, map, img, hidePanel }) => { - const [isPlaying, setIsPlaying] = useState(true); + const [isPlaying, setIsPlaying] = useState(false); const [followAgent, setFollowAgent] = useState(undefined); const [levelState, setLevelState] = useState({ stepId: 0, substepId: 0, agents: [] }); const [fetchIndex, setFetchIndex] = useState(0);