fix prev commit
This commit is contained in:
parent
412a34158e
commit
71650fd31d
@ -65,6 +65,9 @@ export default function commonReactions(store: RootStore, apolloClient: ApolloCl
|
||||
reaction(
|
||||
() => $calculation.getElementValue('selectOpportunity'),
|
||||
async (opportunityid) => {
|
||||
if (!opportunityid) {
|
||||
return;
|
||||
}
|
||||
const { data } = await apolloClient.query<GetLeadidByOpportunity>({
|
||||
query: QUERY_GET_LEADID_BY_OPPORTUNITY,
|
||||
variables: {
|
||||
|
||||
@ -14,6 +14,10 @@ export default function urlsReactions(store: RootStore, apolloClient: ApolloClie
|
||||
reaction(
|
||||
() => $calculation.getElementValue(elementName),
|
||||
(id) => {
|
||||
if (!id) {
|
||||
$calculation.resetElementValue(linkElementName);
|
||||
}
|
||||
|
||||
const timeoutId = setTimeout(() => {
|
||||
$calculation.$status.setStatus(linkElementName, 'Loading');
|
||||
}, 1200);
|
||||
@ -33,7 +37,7 @@ export default function urlsReactions(store: RootStore, apolloClient: ApolloClie
|
||||
})
|
||||
.catch(() => {
|
||||
clearTimeout(timeoutId);
|
||||
$calculation.setElementValue(linkElementName, null);
|
||||
$calculation.resetElementValue(linkElementName);
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user