fix: associaion block failed to create in internalViewer (#3274)

This commit is contained in:
katherinehhh 2023-12-28 19:42:51 +08:00 committed by GitHub
parent 50851dc441
commit 0c60780b50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,7 +125,13 @@ export const ReadPrettyInternalViewer: React.FC = observer(
{renderRecords()}
</EllipsisWithTooltip>
<ActionContextProvider
value={{ visible, setVisible, openMode: 'drawer', snapshot: collectionField?.interface === 'snapshot' }}
value={{
visible,
setVisible,
openMode: 'drawer',
snapshot: collectionField?.interface === 'snapshot',
fieldSchema: fieldSchema,
}}
>
{renderRecordProvider()}
</ActionContextProvider>