#
vincentlu
2025-12-15 30ed06494891134098ddaf0e86cc389a66a6e0b0
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 (