From 45976327968ba901687a289bfda1246952a29fbf Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 25 三月 2024 10:42:43 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/index.jsx |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/index.jsx b/zy-asrs-flow/src/pages/map/index.jsx
index 102aef6..cc7aee8 100644
--- a/zy-asrs-flow/src/pages/map/index.jsx
+++ b/zy-asrs-flow/src/pages/map/index.jsx
@@ -266,7 +266,11 @@
     }, [spriteBySettings])
     const prevSpriteBySettings = prevSpriteBySettingsRef.current;
 
+    // watch batchSprites
     React.useEffect(() => {
+        if (!mapContainer) {
+            return;
+        }
         if (batchSprites?.length > 0) {
             setBatchDrawerVisible(true)
         } else {

--
Gitblit v1.9.1