seat-editor 3.3.23 → 3.3.24

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.
@@ -52,8 +52,8 @@ const boardSlice = createSlice({
52
52
  state.extraComponents = state.extraComponents.filter((component) => component.id !== action.payload.id);
53
53
  },
54
54
  updateComponent: (state, action) => {
55
- const index = state.components.findIndex((component) => component.id === action.payload.id);
56
- const indexExtra = state.extraComponents.findIndex((extraComponent) => extraComponent.id === action.payload.id);
55
+ const index = state.components.findIndex((component) => String(component.id) == String(action.payload.id));
56
+ const indexExtra = state.extraComponents.findIndex((extraComponent) => String(extraComponent.id) == String(action.payload.id));
57
57
  // state.historyChanges.push({
58
58
  // components: [...state.components],
59
59
  // extraComponents: [...state.extraComponents],
@@ -80,8 +80,8 @@ const boardSlice = createSlice({
80
80
  updateComponentsBulk: (state, action) => {
81
81
  const updates = action.payload;
82
82
  updates.forEach((update) => {
83
- const index = state.components.findIndex((component) => component.id === update.id);
84
- const indexExtra = state.extraComponents.findIndex((extra) => extra.id === update.id);
83
+ const index = state.components.findIndex((component) => component.id == update.id);
84
+ const indexExtra = state.extraComponents.findIndex((extra) => extra.id == update.id);
85
85
  if (index !== -1) {
86
86
  state.components[index] = Object.assign(Object.assign({}, state.components[index]), update);
87
87
  }
@@ -106,7 +106,7 @@ const boardSlice = createSlice({
106
106
  updateSelectedGroupComponent: (state, action) => {
107
107
  const allComponents = action.payload;
108
108
  forEach(allComponents, (component) => {
109
- const index = state.components.findIndex((c) => c.id === component.id);
109
+ const index = state.components.findIndex((c) => c.id == component.id);
110
110
  if (index !== -1) {
111
111
  state.components[index] = Object.assign(Object.assign({}, state.components[index]), component);
112
112
  }
@@ -203,7 +203,7 @@ const boardSlice = createSlice({
203
203
  var _a, _b, _c, _d, _e, _f, _g, _h;
204
204
  if (state.pointer > 1) {
205
205
  const lengthHistory = state.historyChanges.length;
206
- if (lengthHistory === state.pointer) {
206
+ if (lengthHistory == state.pointer) {
207
207
  state.pointer = lengthHistory - 2;
208
208
  }
209
209
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seat-editor",
3
- "version": "3.3.23",
3
+ "version": "3.3.24",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",