mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 06:46:38 +00:00
fix(plugin-notification-manager): fix undefined bug (#5528)
This commit is contained in:
parent
34d6dd96b3
commit
20e8d799ad
@ -15,7 +15,7 @@ export const ContentConfigForm = withDynamicSchemaProps(
|
||||
observer<{ variableOptions: any; channelType: string }>(
|
||||
({ variableOptions, channelType }) => {
|
||||
const channelTypeMap = useChannelTypeMap();
|
||||
const { ContentConfigForm = () => null } = (channelType ? channelTypeMap[channelType] : {}).components || {};
|
||||
const { ContentConfigForm = () => null } = (channelType ? channelTypeMap[channelType] : {})?.components || {};
|
||||
return <ContentConfigForm variableOptions={variableOptions} />;
|
||||
},
|
||||
{ displayName: 'ContentConfigForm' },
|
||||
|
Loading…
Reference in New Issue
Block a user