@iotready/nextjs-components-library 1.0.0-preview17 → 1.0.0-preview18
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.
@@ -224,7 +224,7 @@ const GroupsDevices = ({ userInfo, handleGetUsersList, handleAddUserToGroup, han
|
|
224
224
|
const devicesPatched = await handleRemoveDevicesFromGroup(userInfo, selectedGroup, devicesToPatch);
|
225
225
|
if (devicesPatched && devicesPatched.length > 0) {
|
226
226
|
for (const device of devicesToPatch) {
|
227
|
-
if (device.managers.length > 0) {
|
227
|
+
if (device.managers && device.managers.length > 0) {
|
228
228
|
let managersToKeep = device.managers || [];
|
229
229
|
for (const manager of device.managers) {
|
230
230
|
// should check if device is present in other groups the user is member of
|
package/package.json
CHANGED