Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(expressions): adds inputValue as scope item #859

Merged
merged 4 commits into from
Jun 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: export swap as named export and remove useless else
2xAA committed Jun 10, 2023

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit 442fb030b96efbe40c71e93940e25d718f1ed1e5
4 changes: 1 addition & 3 deletions src/application/worker/store/modules/common/swap.js
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ import Vue from "vue";
* The idea is that this makes loading presets smooth and the end user will not see any
* glitches in the render loop.
*/
export default function SWAP(swap, getDefault, sharedPropertyRestrictions) {
export function SWAP(swap, getDefault, sharedPropertyRestrictions) {
return function(state) {
const stateKeys = Object.keys(state);

@@ -82,8 +82,6 @@ export default function SWAP(swap, getDefault, sharedPropertyRestrictions) {
}
}
});
} else {
Object.assign(swap, getDefault());
}

Object.assign(swap, getDefault());
2 changes: 1 addition & 1 deletion src/application/worker/store/modules/groups.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import SWAP from "./common/swap";
import { SWAP } from "./common/swap";
import store from "../";
import constants, { GROUP_DISABLED } from "../../../constants";
import { v4 as uuidv4 } from "uuid";
2 changes: 1 addition & 1 deletion src/application/worker/store/modules/inputs.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Vue from "vue";
import { v4 as uuidv4 } from "uuid";
import SWAP from "./common/swap";
import { SWAP } from "./common/swap";

/**
* InputLinkType enum string values.
2 changes: 1 addition & 1 deletion src/application/worker/store/modules/modules.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Vue from "vue";
import SWAP from "./common/swap";
import { SWAP } from "./common/swap";
import getNextName from "../../../utils/get-next-name";
import getPropDefault from "../../../utils/get-prop-default";
import store from "..";