Skip to content

Commit b0656ed

Browse files
committed
fix(unity-bootstrap-theme): initialized retryCount var
UDS-2010
1 parent 9310021 commit b0656ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/unity-bootstrap-theme/src/js/card-bodies.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function initCardBodies() {
1212
const cardBodies = document.querySelectorAll('.card-body');
1313

1414
// If there are no cardBodies and you have not yet exceeded 3 retries
15+
let retryCount = 0;
1516
if (cardBodies.length === 0 && retryCount < 3) {
1617
setTimeout(() => initCardBodies(retryCount + 1), 500);
1718
return;

0 commit comments

Comments
 (0)