@complat/react-spectra-editor 1.0.0-rc12 → 1.0.0-rc13.alpha.0

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.
@@ -188,7 +188,14 @@ const editPeakReducer = function () {
188
188
  case _action_type.EDITPEAK.SHIFT:
189
189
  return processShift(state, action);
190
190
  case _action_type.MANAGER.RESETALL:
191
- return initialState;
191
+ return {
192
+ selectedIdx: 0,
193
+ peaks: [{
194
+ prevOffset: 0,
195
+ pos: [],
196
+ neg: []
197
+ }]
198
+ };
192
199
  default:
193
200
  return _undo_redo_config.undoRedoActions.indexOf(action.type) >= 0 ? Object.assign({}, state) : state;
194
201
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@complat/react-spectra-editor",
3
- "version": "1.0.0-rc12",
3
+ "version": "1.0.0-rc13.alpha.0",
4
4
  "description": "An editor to View and Edit Chemical Spectra data (NMR, IR and MS, CV, UIVIS, XRD).",
5
5
  "repository": {
6
6
  "type": "git",