From 148f4ebece2be0cf5633355d7b0f32b54f518f7b Mon Sep 17 00:00:00 2001 From: "ecospark[bot]" <128108030+ecospark[bot]@users.noreply.github.com> Date: Thu, 20 Apr 2023 23:10:44 +0200 Subject: [PATCH] =?UTF-8?q?chore(prettier):=20fix=20unformatted=20files=20?= =?UTF-8?q?=F0=9F=A4=96=20=E2=9C=A8=20(#4401)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> --- packages/@sanity/vision/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/@sanity/vision/README.md b/packages/@sanity/vision/README.md index 969cb9093f2..b5eaaba4f3e 100644 --- a/packages/@sanity/vision/README.md +++ b/packages/@sanity/vision/README.md @@ -68,11 +68,11 @@ export default defineConfig({ visionTool(), ], tools: (prev, {currentUser}) => { - const isAdmin = currentUser?.roles.some(role => role.name === 'administrator'); - + const isAdmin = currentUser?.roles.some((role) => role.name === 'administrator') + // If the user has the administrator role, return all tools. // If the user does not have the administrator role, filter out the vision tool. - return isAdmin ? prev : prev.filter(tool => tool.name !== 'vision'); + return isAdmin ? prev : prev.filter((tool) => tool.name !== 'vision') }, }) ```