@eohjsc/react-native-smart-city 0.4.64 → 0.4.66

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.4.64",
4
+ "version": "0.4.66",
5
5
  "description": "TODO",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -211,8 +211,8 @@ async function sendCommandSingleAction(connection, ghAction, data) {
211
211
  const { message } = ghAction || {};
212
212
  const name = getServiceName(message);
213
213
 
214
- if (name && data) {
215
- message.service_data[name] = data;
214
+ if (name && data?.value !== undefined) {
215
+ message.service_data[name] = data?.value;
216
216
  }
217
217
  try {
218
218
  await connection.sendMessagePromise(message);
@@ -517,7 +517,9 @@ const DeviceDetail = ({ route }) => {
517
517
  !configIds.includes(configId) && configIds.push(configId);
518
518
  }
519
519
  });
520
- configIdsTemp.current = configIds.filter(Boolean);
520
+
521
+ configIds = configIds.filter(Boolean);
522
+ configIdsTemp.current = configIds;
521
523
 
522
524
  configIds.map((id) => {
523
525
  params.append('config', id);