@ -47,7 +47,7 @@ export default Backbone.Model.extend({
if (model && device) {
const { width, height } = device.attributes;
model.set({ width, height });
model.set({ width, height }, { noUndo: 1 });
}
},
@ -78,7 +78,8 @@ export default Model.extend({
getHead() {
return [...this.get('head')];
const head = this.get('head') || [];
return [...head];
setHead(value) {