-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "feat(sanity): #TEMPORARY #DELETE handle versions in `Document…
…PaneProvider`" This reverts commit 4e9be02.
- Loading branch information
Showing
2 changed files
with
7 additions
and
63 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
packages/sanity/src/core/store/_legacy/document/document-pair/utils/isLiveEditEnabled.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import {type Schema} from '@sanity/types' | ||
|
||
export const isLiveEditEnabled = (schema: Schema, typeName: string): boolean => | ||
(globalThis as any).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_LIVE_EDIT_OVERRIDE ?? | ||
schema.get(typeName)?.liveEdit === true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters