Skip to content

Commit

Permalink
safety
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed Feb 27, 2022
1 parent 7c23299 commit f70019b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/util/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -618,8 +618,7 @@
delete options.width;
delete options.height;
}
options.layout = 'svg';
var group = new fabric.Group(elements, options);
var group = new fabric.Group(elements, Object.assign(options || {}, { layout: 'svg' }));
if (typeof path !== 'undefined') {
group.sourcePath = path;
}
Expand Down

0 comments on commit f70019b

Please sign in to comment.