From 2d5211c06b98904c1e37c8043468dc62e9f571a0 Mon Sep 17 00:00:00 2001 From: aabidsofi19 Date: Wed, 27 Sep 2023 11:00:46 +0530 Subject: [PATCH] Add a nullish check Signed-off-by: aabidsofi19 --- ui/components/MesheryPatterns.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/components/MesheryPatterns.js b/ui/components/MesheryPatterns.js index decc6cd0c99..132380174e8 100644 --- a/ui/components/MesheryPatterns.js +++ b/ui/components/MesheryPatterns.js @@ -964,7 +964,7 @@ function MesheryPatterns({ return ( user?.role_names?.includes('admin') || user?.user_id === 'meshery' || - user?.user_id == pattern.user_id + user?.user_id == pattern?.user_id ); };