From 30ed06494891134098ddaf0e86cc389a66a6e0b0 Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期一, 15 十二月 2025 16:45:01 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/map/areaSettings/AreaBasicTab.jsx | 32 ++------------------------------
1 files changed, 2 insertions(+), 30 deletions(-)
diff --git a/zy-acs-flow/src/map/areaSettings/AreaBasicTab.jsx b/zy-acs-flow/src/map/areaSettings/AreaBasicTab.jsx
index 2af650d..6939cc8 100644
--- a/zy-acs-flow/src/map/areaSettings/AreaBasicTab.jsx
+++ b/zy-acs-flow/src/map/areaSettings/AreaBasicTab.jsx
@@ -28,39 +28,11 @@
const checkedIcon = <CheckBoxIcon fontSize="small" />;
const getOptionLabel = (option) => {
- if (option == null) {
- return '';
- }
- if (typeof option === 'string' || typeof option === 'number') {
- return String(option);
- }
- const label =
- option?.label ??
- option?.uuid ??
- option?.name ??
- option?.agvNo ??
- option?.value ??
- option?.id ??
- '';
- return label != null ? String(label) : '';
+ return option?.uuid ?? '';
};
const getOptionId = (option) => {
- if (option == null) {
- return '';
- }
- if (typeof option === 'string' || typeof option === 'number') {
- return String(option);
- }
- const identifier =
- option?.value ??
- option?.id ??
- option?.uuid ??
- option?.agvNo ??
- option?.code ??
- option?.name ??
- '';
- return identifier != null ? String(identifier) : '';
+ return option?.id;
};
return (
--
Gitblit v1.9.1