micro refactor
This commit is contained in:
parent
cb5814decf
commit
a089eae12b
@ -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];
|
||||
|
||||
@ -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;
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user