From 22edf1dd6d402e4053ea2fcbe1d1b06c72d3df93 Mon Sep 17 00:00:00 2001 From: amitabhRazorpay Date: Tue, 10 Jan 2023 16:11:35 +0530 Subject: [PATCH] [statping-ui] : null checks added in generateTooltipPosition --- react-frontend/src/utils/helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-frontend/src/utils/helper.js b/react-frontend/src/utils/helper.js index a46f3b5b..9ea13b79 100644 --- a/react-frontend/src/utils/helper.js +++ b/react-frontend/src/utils/helper.js @@ -93,7 +93,7 @@ export const generateUUID = (length) => { export const generateTooltipPosition = (...args) => { const position = args?.[0]; //tooltip default position - const { top, left } = position; + const { top, left } = position || {}; const place = args?.[4]; // tooltip placement const offset = 6;