-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sanity): #TEMPORARY #DELETE handle versions in `DocumentPaneProv…
…ider`
- Loading branch information
Showing
2 changed files
with
64 additions
and
8 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
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,4 +1,5 @@ | ||
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