@northern.tech/store 0.46.3 → 0.46.5

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/dist/thunks.js CHANGED
@@ -566,11 +566,11 @@ const removeDevicesFromGroup = createAppAsyncThunk(`${sliceName$2}/removeDevices
566
566
  message: `The ${pluralize("devices", deviceIds.length)} ${pluralize("were", deviceIds.length)} removed from the group`,
567
567
  autoHideDuration: TIMEOUTS.fiveSeconds
568
568
  }))])));
569
- const addStaticGroup = createAppAsyncThunk(`${sliceName$2}/addStaticGroup`, ({ group, devices }, { dispatch, getState }) => Promise.resolve(dispatch(addDevicesToGroup({
569
+ const addStaticGroup = createAppAsyncThunk(`${sliceName$2}/addStaticGroup`, ({ group, devices }, { dispatch, getState }) => dispatch(addDevicesToGroup({
570
570
  group,
571
571
  deviceIds: devices.map(({ id }) => id),
572
572
  isCreation: true
573
- }))).then(() => Promise.resolve(dispatch(actions$2.addGroup({
573
+ })).unwrap().then(() => Promise.resolve(dispatch(actions$2.addGroup({
574
574
  group: {
575
575
  deviceIds: [],
576
576
  total: 0,