disable tarif reaction when loading kp
This commit is contained in:
parent
c74d0a70f2
commit
37b8eddda2
@ -1,5 +1,6 @@
|
||||
import { openNotification } from 'client/Elements/Notification';
|
||||
import { IReactionEffect } from 'core/types/Calculation/Store/effect';
|
||||
import { Process } from 'core/types/Calculation/Store/process';
|
||||
import { ElementStatus } from 'core/types/statuses';
|
||||
import { calcPrice, calculatePerc, calculateRub } from '../lib/tools';
|
||||
|
||||
@ -1706,12 +1707,16 @@ const reactionEffects: IReactionEffect[] = [
|
||||
},
|
||||
}),
|
||||
|
||||
calculationStore => ({
|
||||
(calculationStore, calculationProcess) => ({
|
||||
expression: () => {
|
||||
const { tarif } = calculationStore.values;
|
||||
return tarif;
|
||||
},
|
||||
effect: tarif_evo_id => {
|
||||
if (calculationProcess.process === Process.LoadKp) {
|
||||
return;
|
||||
}
|
||||
|
||||
const tarif = calculationStore.options.selectTarif?.find(
|
||||
x => x.evo_tarifid === tarif_evo_id,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user