protection from the cunning of managers
This commit is contained in:
parent
3a135d4944
commit
ec8f4610e6
@ -77,16 +77,7 @@ const reactionEffects: IReactionEffect[] = [
|
||||
quote.evo_statuscode.evo_id === '2.3',
|
||||
),
|
||||
);
|
||||
const { quote } = calculationStore.values;
|
||||
const { selectQuote: selectQuoteFilter } = calculationStore.filters;
|
||||
const { selectQuote: selectQuoteOptions } = calculationStore.options;
|
||||
if (
|
||||
selectQuoteFilter &&
|
||||
selectQuoteOptions &&
|
||||
!selectQuoteFilter(selectQuoteOptions).some(x => x.value === quote)
|
||||
) {
|
||||
calculationStore.setValue('quote', null);
|
||||
}
|
||||
calculationStore.setValue('quote', null);
|
||||
} else {
|
||||
calculationStore.setFilter('selectQuote', undefined);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user