@eohjsc/react-native-smart-city 0.2.69 → 0.2.70

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.2.69",
4
+ "version": "0.2.70",
5
5
  "description": "TODO",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -42,7 +42,7 @@ const CameraDevice = ({ station, handleFullScreen, goToPlayBack }) => {
42
42
  )}
43
43
  </View>
44
44
 
45
- {station.camera_devices.map((device) => (
45
+ {(station?.camera_devices || []).map((device) => (
46
46
  <View
47
47
  key={device.id}
48
48
  style={[
@@ -273,7 +273,7 @@ const UnitDetail = ({ route }) => {
273
273
  />
274
274
  );
275
275
  }
276
- if (station.camera_devices) {
276
+ if (station?.camera_devices) {
277
277
  return (
278
278
  <CameraDevice
279
279
  station={station}