Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (!localState[key].subProxy) {
initialValues[localState[key].label] =
localState[key].value;
} else {
if (!subProxyValues[localState[key].subProxy]) {
subProxyValues[localState[key].subProxy] = {};
}
subProxyValues[localState[key].subProxy][
localState[key].label
] =
localState[key].value;
}
});
}
this.$store.dispatch(Actions.PROXY_CREATE, {
name: proxyNameToCreate,
parentId: this.activeSourceId,
initialValues,
subProxyValues,
skipDomain: !!hasChange(),
});
},
}
data() {
return {
module,
color: 'grey darken-2',
};
},
methods: Object.assign(
{
addSource(idx) {
const name = this.sources[idx];
this.createProxy({ name });
},
},
mapActions({
removeActiveModule: Actions.MODULES_ACTIVE_CLEAR,
createProxy: Actions.PROXY_CREATE,
})
),
};