@iobroker/adapter-react-v5 4.6.1 → 4.6.3

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.
@@ -1223,7 +1223,7 @@ var Connection = /*#__PURE__*/function () {
1223
1223
  ids.forEach(function (id) {
1224
1224
  return _this14._socket.emit('subscribe', id);
1225
1225
  });
1226
- this._socket.emit(Connection.isWeb() ? 'getStates' : 'getForeignStates', ids, function (err, states) {
1226
+ ids.length && this._socket.emit(Connection.isWeb() ? 'getStates' : 'getForeignStates', ids, function (err, states) {
1227
1227
  err && console.error("Cannot getForeignStates: ".concat(JSON.stringify(err)));
1228
1228
  // inform about states
1229
1229
  states && Object.keys(states).forEach(function (id) {