micro refactor

This commit is contained in:
Chika 2021-01-28 11:52:39 +03:00
parent cb5814decf
commit a089eae12b
2 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ const valuesActions = {
if (this.stores.calculationProcess.bypass.status) {
const { target, value } = this.stores.calculationProcess.bypass.status;
if (target.indexOf(elementName) > -1) {
return value || undefined;
return value;
}
}
return this.statuses[elementName];

View File

@ -33,12 +33,12 @@ export const calculationProcess = makeAutoObservable({
}: {
param: ElementParam;
target: (ElementsNames | TableNames)[];
value?: ElementStatus;
value: ElementStatus;
}) {
this.bypass[param] = { target, value };
},
clearBypass(prop) {
this.bypass[prop] = undefined;
clearBypass(param: ElementParam) {
this.bypass[param] = undefined;
},
});