From 533dac5c2668114ee547b405108c17b04e9db5af Mon Sep 17 00:00:00 2001 From: Ark2307 Date: Mon, 15 Jul 2024 16:12:49 +0530 Subject: [PATCH] fixing null check --- apps/dashboard/web/polaris_web/web/src/util/func.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dashboard/web/polaris_web/web/src/util/func.js b/apps/dashboard/web/polaris_web/web/src/util/func.js index 74d6196d07..62f12c3f21 100644 --- a/apps/dashboard/web/polaris_web/web/src/util/func.js +++ b/apps/dashboard/web/polaris_web/web/src/util/func.js @@ -550,13 +550,13 @@ sortFunc: (data, sortKey, sortOrder) => { let nameA = "" if(a?.displayName?.length > 0){ nameA = a?.displayName.toLowerCase() ; - }else if(a?.name.length > 0){ + }else if(a?.name?.length > 0){ nameA = a?.name.toLowerCase(); } let nameB = "" if(b?.displayName?.length > 0){ nameB = b?.displayName.toLowerCase() ; - }else if(b?.name.length > 0){ + }else if(b?.name?.length > 0){ nameB = b?.name.toLowerCase(); }