Skip to content

Commit

Permalink
enable live
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchuman committed Nov 5, 2024
1 parent 9397ab4 commit 4fa0036
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sanitypress",
"version": "4.12.3",
"version": "5.0.0",
"description": "A Next.js + Sanity.io Starter Template",
"author": "nuotsu <[email protected]> (https://nuotsu.dev)",
"license": "ISC",
Expand Down
3 changes: 2 additions & 1 deletion src/ui/VisualEditingControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import DisableDraftMode from './DisableDraftMode'
export default async function VisualEditingControls() {
return (
<>
<SanityLive />

{(await draftMode()).isEnabled && (
<>
<SanityLive />
<VisualEditing />
<DisableDraftMode />
</>
Expand Down

0 comments on commit 4fa0036

Please sign in to comment.