Browse Source

Avoid tracking device changes in undo manager. Fixes #3437

pull/3445/head
Artur Arseniev 5 years ago
parent
commit
33b20c62a5
  1. 2
      src/canvas/model/Canvas.js
  2. 3
      src/canvas/model/Frame.js

2
src/canvas/model/Canvas.js

@ -47,7 +47,7 @@ export default Backbone.Model.extend({
if (model && device) { if (model && device) {
const { width, height } = device.attributes; const { width, height } = device.attributes;
model.set({ width, height }); model.set({ width, height }, { noUndo: 1 });
} }
}, },

3
src/canvas/model/Frame.js

@ -78,7 +78,8 @@ export default Model.extend({
}, },
getHead() { getHead() {
return [...this.get('head')]; const head = this.get('head') || [];
return [...head];
}, },
setHead(value) { setHead(value) {

Loading…
Cancel
Save