block-xray-attributes icon indicating copy to clipboard operation
block-xray-attributes copied to clipboard

"PluginDocumentSettingPanel requires a name property." Warning

Open salcode opened this issue 8 months ago • 0 comments

We're seeing the following warning in the browser console

PluginDocumentSettingPanel requires a name property. Error Component Stack

Image

Proposed Solution

Update

https://github.com/salcode/block-xray-attributes/blob/516c3f71a4f48a8f75295150dd0df6355cc31551/src/components/BlockXrayPanel/index.js#L13-L18

to

<PluginDocumentSettingPanel
  name="block-xray-attributes"
  icon="code-standards"
  title={__( 'Block X-ray', 'block-xray-attributes' )}
>
  <BlockXrayWithSelectedBlock />
</PluginDocumentSettingPanel>

i.e. add name="block-xray-attributes" to PluginDocumentSettingPanel

salcode avatar May 22 '25 17:05 salcode