Skip to content

Commit 8bb9966

Browse files
committed
Preset channel cleaning fixed.
1 parent ccdfe74 commit 8bb9966

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/apps/weblib/js-api/presets.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,12 +371,16 @@ export default class Presets {
371371
title: "",
372372
reverse: false,
373373
sort: "none",
374+
geometry: 'rectangle'
374375
};
375376
}
376377

377378
_createPresetConfig(presetName) {
378379
let presetConfig = this._presetConfigs[presetName];
380+
let nullConfig = this._nullConfig();
381+
let channelBase = Object.assign(nullConfig.channels, presetConfig.channels);
379382
let base = Object.assign(this._nullConfig(), presetConfig);
383+
base.channels = channelBase;
380384
return base;
381385
}
382386

0 commit comments

Comments
 (0)