@eohjsc/react-native-smart-city 0.7.17 → 0.7.18

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eohjsc/react-native-smart-city",
3
3
  "title": "React Native Smart Home",
4
- "version": "0.7.17",
4
+ "version": "0.7.18",
5
5
  "description": "TODO",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -362,7 +362,7 @@ const ScriptDetail = ({ route }) => {
362
362
 
363
363
  const onPressSelectChip = useCallback(
364
364
  async (enable_local_control, item) => {
365
- if (!item.id) {
365
+ if (!enable_local_control && !local_control.chip_id_local_control) {
366
366
  setIsShowLocalControl(false);
367
367
  return;
368
368
  }
@@ -382,7 +382,7 @@ const ScriptDetail = ({ route }) => {
382
382
  });
383
383
  }
384
384
  },
385
- [automateId]
385
+ [automateId, local_control.chip_id_local_control]
386
386
  );
387
387
 
388
388
  const renderLocalControl = useMemo(() => {