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 ); };