Skip to content

Commit

Permalink
fix(groups): replaces or statement to fix preset inheritance (#473)
Browse files Browse the repository at this point in the history
* fix(groups): replaces or statement to fix preset inheritance

Replaces OR statement with !!

* fix(groups): Set proper default value for "inherit"

fix #469
  • Loading branch information
2xAA authored Dec 4, 2020
1 parent 8df9273 commit 8b9bd11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/application/worker/store/modules/groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ const actions = {
async createGroup({ commit }, args = {}) {
const name = args.name || "New Group";
const writeTo = args.writeToSwap ? swap : state;
const inherit = args.inherit === undefined ? true : args.inherit;

const existingGroupIndex = writeTo.groups.findIndex(
group => group.id === args.id
Expand All @@ -119,7 +120,7 @@ const actions = {
enabled: args.enabled || false,
hidden: args.hidden || false,
modules: args.modules || [],
inherit: args.inherit || -1,
inherit,
alpha: args.alpha || 1,
compositeOperation: args.compositeOperation || "normal",
context: await store.dispatch("outputs/getAuxillaryOutput", {
Expand Down

0 comments on commit 8b9bd11

Please sign in to comment.