@eohjsc/react-native-smart-city 0.7.39 → 0.7.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -22,13 +22,12 @@ const NewActionWrapper = ({
|
|
|
22
22
|
canNext !== undefined || onNext !== undefined || nextTitle !== undefined;
|
|
23
23
|
const { navigate } = useNavigation();
|
|
24
24
|
const { params = {} } = useRoute();
|
|
25
|
-
const { automateId } = params;
|
|
26
25
|
|
|
27
26
|
const { closeScreen } = params;
|
|
28
27
|
|
|
29
28
|
const handleClose = useCallback(() => {
|
|
30
|
-
navigate(closeScreen,
|
|
31
|
-
}, [closeScreen, navigate, params
|
|
29
|
+
navigate(closeScreen, params);
|
|
30
|
+
}, [closeScreen, navigate, params]);
|
|
32
31
|
|
|
33
32
|
const rightComponent = useMemo(
|
|
34
33
|
() => (
|
|
@@ -97,10 +97,11 @@ const ScriptDetail = ({ route }) => {
|
|
|
97
97
|
name,
|
|
98
98
|
unit,
|
|
99
99
|
can_edit,
|
|
100
|
-
id: automateId,
|
|
101
100
|
is_need_all_conditions,
|
|
102
101
|
conditions = [{}],
|
|
103
102
|
} = automate;
|
|
103
|
+
// Create const automateId Fix error navigation from handleClose NewActionWrapper to ScriptDetail
|
|
104
|
+
const automateId = automate.id || params.automateId;
|
|
104
105
|
const [needAllCondition, setNeedAllCondition] = useState(
|
|
105
106
|
is_need_all_conditions
|
|
106
107
|
);
|