fix selectuser is null

This commit is contained in:
vchikalkin 2023-03-28 15:11:29 +03:00
parent 579b346532
commit 4a4e29102b

View File

@ -11,6 +11,12 @@ export default function unlimitedReactions({ store, apolloClient }: ProcessConte
reaction(
() => $calculation.element('selectUser').getValue(),
async (domainname) => {
if (!domainname) {
$calculation.element('selectLead').reset();
$calculation.element('selectOpportunity').reset();
return;
}
const {
data: { leads },
} = await apolloClient.query({