[statping-ui] : null checks added in generateTooltipPosition

pull/1113/head
amitabhRazorpay 2023-01-10 16:11:35 +05:30
parent 7e31545837
commit 22edf1dd6d
1 changed files with 1 additions and 1 deletions

View File

@ -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;