Skip to content

Commit

Permalink
Add a nullish check
Browse files Browse the repository at this point in the history
Signed-off-by: aabidsofi19 <mailtoaabid01@gmail.com>
  • Loading branch information
aabidsofi19 committed Sep 27, 2023
1 parent ef9d578 commit 2d5211c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/components/MesheryPatterns.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
};

Expand Down

0 comments on commit 2d5211c

Please sign in to comment.