diff --git a/frontend/src/components/canvas/store/snapshot.js b/frontend/src/components/canvas/store/snapshot.js index 173725a674..4dcb1a7f8b 100644 --- a/frontend/src/components/canvas/store/snapshot.js +++ b/frontend/src/components/canvas/store/snapshot.js @@ -58,9 +58,7 @@ export default { state.lastSaveSnapshotIndex = deepCopy(state.snapshotIndex) }, recordStyleChange(state) { - if (state.curComponent) { - state.styleChangeTimes++ - } + state.styleChangeTimes++ } } }