Skip to content

Commit

Permalink
Fix small bug and selenium tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oxixes committed Jun 25, 2024
1 parent 03136c7 commit d063cb6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,14 +258,15 @@
* resolved, or an Error if rejected.
*/
createWidget(resource, options) {
const layoutConfigs = utils.clone(this.model.preferences.get('screenSizes'));
const layoutConfigs = utils.clone(this.model.preferences.get('screenSizes'), true);

options = utils.merge({
commit: true,
layout: this.model.preferences.get('initiallayout') === "Free" ? 1 : 0
}, options);

layoutConfigs.forEach((layoutConfig) => {

Wirecloud.Utils.merge(layoutConfig, {
action: 'update',
width: resource.default_width,
Expand Down

0 comments on commit d063cb6

Please sign in to comment.