From 0ba7d30c63d5c6608ac7807caa486be9ad9b055f Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 15 三月 2024 08:51:42 +0800
Subject: [PATCH] #
---
zy-asrs-flow/src/pages/map/header/search.jsx | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/zy-asrs-flow/src/pages/map/header/search.jsx b/zy-asrs-flow/src/pages/map/header/search.jsx
index 5daa259..d59615c 100644
--- a/zy-asrs-flow/src/pages/map/header/search.jsx
+++ b/zy-asrs-flow/src/pages/map/header/search.jsx
@@ -93,7 +93,8 @@
// second select
React.useEffect(() => {
if (!Utils.getMapContainer()) { return; }
- if (curSensorLabel && sensorList && sensorList.length > 0) {
+ if ((curSensorLabel !== null || curSensorLabel != undefined)
+ && sensorList && sensorList.length > 0) {
setFilterSensorList(sensorList.filter(item => item.value.includes(curSensorLabel)));
}
}, [curSensorLabel])
--
Gitblit v1.9.1