fix(richtext-lexical): prevent runtime error if using TextStateFeature without props (#12668)
TextStateFeature wasn't intended to be used without props, but it still shouldn't throw a runtime error if used that way. Perhaps some users are experimenting until they decide on the props. Fixes #12518
This commit is contained in:
@@ -69,7 +69,7 @@ export const TextStateFeature = createServerFeature<
|
|||||||
return {
|
return {
|
||||||
ClientFeature: '@payloadcms/richtext-lexical/client#TextStateFeatureClient',
|
ClientFeature: '@payloadcms/richtext-lexical/client#TextStateFeatureClient',
|
||||||
clientFeatureProps: {
|
clientFeatureProps: {
|
||||||
state: props.state,
|
state: props?.state,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user