Skip to content

Commit b7f0135

Browse files
authored
Fix: prevent flash of "Untitled" when loading a document w/ preview (#7505)
1 parent 2de06de commit b7f0135

File tree

1 file changed

+1
-1
lines changed
  • packages/sanity/src/structure/panes/document/documentPanel/documentViews

1 file changed

+1
-1
lines changed

packages/sanity/src/structure/panes/document/documentPanel/documentViews/FormView.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export const FormView = forwardRef<HTMLDivElement, FormViewProps>(function FormV
166166
>
167167
<PresenceOverlay margins={margins}>
168168
<Box as="form" onSubmit={preventDefault} ref={setRef}>
169-
{connectionState === 'connecting' ? (
169+
{connectionState === 'connecting' || !ready ? (
170170
<Delay ms={300}>
171171
{/* TODO: replace with loading block */}
172172
<Flex align="center" direction="column" height="fill" justify="center">

0 commit comments

Comments
 (0)