Skip to content

Commit

Permalink
chore(prettier): fix unformatted files 🤖 ✨ (#4401)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
ecospark[bot] and github-actions[bot] authored Apr 20, 2023
1 parent fcfe3a8 commit 148f4eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@sanity/vision/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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')
},
})
```
Expand Down

2 comments on commit 148f4eb

@vercel
Copy link

@vercel vercel bot commented on 148f4eb Apr 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

performance-studio – ./

performance-studio-git-next.sanity.build
performance-studio.sanity.build

@vercel
Copy link

@vercel vercel bot commented on 148f4eb Apr 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

test-studio – ./

test-studio-git-next.sanity.build
test-studio.sanity.build

Please sign in to comment.