From a65169b99a8607b3406b336a7e153e47ca3556ef Mon Sep 17 00:00:00 2001 From: Per-Kristian Nordnes Date: Thu, 15 Dec 2022 12:54:32 +0100 Subject: [PATCH] refactor(core/form/inputs): keep using schemaType var name --- .../src/core/form/inputs/PortableText/PortableTextInput.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sanity/src/core/form/inputs/PortableText/PortableTextInput.tsx b/packages/sanity/src/core/form/inputs/PortableText/PortableTextInput.tsx index a383a9157dd..21e2b39e779 100644 --- a/packages/sanity/src/core/form/inputs/PortableText/PortableTextInput.tsx +++ b/packages/sanity/src/core/form/inputs/PortableText/PortableTextInput.tsx @@ -80,7 +80,7 @@ export function PortableTextInput(props: PortableTextInputProps) { readOnly, renderBlockActions, renderCustomMarkers, - schemaType: type, + schemaType, value, elementProps, } = props @@ -338,7 +338,7 @@ export function PortableTextInput(props: PortableTextInputProps) { onChange={handleEditorChange} maxBlocks={undefined} // TODO: from schema? readOnly={readOnly} - type={type} + type={schemaType} // TODO: rename to schemaType inside PortableTextEditor? value={value} >