jamespot-front-business 1.1.43 → 1.1.44

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/cjs.js CHANGED
@@ -146,11 +146,13 @@ const animationsSlice = toolkit.createSlice({
146
146
  });
147
147
  builder.addCase(toggleAnimationIsActive.pending, (state) => {
148
148
  state.isToggleLoading = true;
149
+ state.isActiveForCurrentUser = !state.isActiveForCurrentUser;
149
150
  });
150
151
  builder.addCase(toggleAnimationIsActive.fulfilled, (state) => {
151
152
  state.isToggleLoading = false;
152
153
  });
153
154
  builder.addCase(toggleAnimationIsActive.rejected, (state) => {
155
+ state.isActiveForCurrentUser = !state.isActiveForCurrentUser;
154
156
  state.isToggleLoading = false;
155
157
  });
156
158
  },
@@ -212,9 +214,15 @@ const selectAnimationConfigurationApp = (state) => state.animations.animationCon
212
214
  const animationsReducer = animationsSlice.reducer;
213
215
  const Animations = {
214
216
  slice: animationsSlice,
215
- actions: { saveCurrentAnimation, fetchCurrentAnimation, deleteCurrentAnimation, toggleAnimationIsActive, fetchCurrentAnimationApp },
217
+ actions: {
218
+ saveCurrentAnimation,
219
+ fetchCurrentAnimation,
220
+ deleteCurrentAnimation,
221
+ toggleAnimationIsActive,
222
+ fetchCurrentAnimationApp,
223
+ },
216
224
  selectors: { selectCurrentAnimation, isActiveAnimation, isToggleLoading, selectAnimationConfigurationApp },
217
- getAnimationsRTHandlers
225
+ getAnimationsRTHandlers,
218
226
  };
219
227
 
220
228
  const adapter$1 = toolkit.createEntityAdapter({