From 582eed968fd5d91c902be53c76c783e0d1e53014 Mon Sep 17 00:00:00 2001
From: enzigma-pratishtha-upadhyay
Date: Tue, 12 Mar 2024 17:17:37 +0530
Subject: [PATCH] Updated the maxNumberOfIntervals from 5 to 20
Updated the maxNumberOfIntervals from 5 to 20 so that it will continue to call focusOnGauLookup function to have the gau-lookup field as focused after adding a new row entry through add allocation button.
---
force-app/main/default/lwc/utilCommon/utilCommon.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/force-app/main/default/lwc/utilCommon/utilCommon.js b/force-app/main/default/lwc/utilCommon/utilCommon.js
index efd2291082f..16983ad1df4 100644
--- a/force-app/main/default/lwc/utilCommon/utilCommon.js
+++ b/force-app/main/default/lwc/utilCommon/utilCommon.js
@@ -638,7 +638,7 @@ const nonePicklistOption = () => {
return createPicklistOption(commonLabelNone, commonLabelNone);
}
-const asyncInterval = async (callback, milliseconds, maxNumberOfIntervals = 5) => {
+const asyncInterval = async (callback, milliseconds, maxNumberOfIntervals = 20) => {
return new Promise((resolve, reject) => {
const intervalId = setInterval(async () => {
if (await callback()) {