From 39ab1e6065717dc1b62ac1f0bbf4f2f46acb0bb0 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 16 十月 2024 09:15:04 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/map/header/MapSearch.jsx |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/zy-acs-flow/src/map/header/MapSearch.jsx b/zy-acs-flow/src/map/header/MapSearch.jsx
index cb867d1..fb5cb37 100644
--- a/zy-acs-flow/src/map/header/MapSearch.jsx
+++ b/zy-acs-flow/src/map/header/MapSearch.jsx
@@ -138,10 +138,10 @@
                 size="small"
                 options={filterDeviceList}
                 getOptionLabel={(option) => option.value}
-                renderOption={(props, option) => {
-                    const { key, ...otherProps } = props;
+                renderOption={(optionProps, option) => {
+                    const { key, ...otherProps } = optionProps;
                     return (
-                        <li key={Number(key)} {...otherProps}>
+                        <li key={option.uuid} {...otherProps}>
                             <Stack direction="row" justifyContent="space-between" width="100%">
                                 <Typography variant="body1" fontWeight="bold">
                                     {option.label}

--
Gitblit v1.9.1