Skip to content

"PluginDocumentSettingPanel requires a name property." Warning #36

@salcode

Description

@salcode

We're seeing the following warning in the browser console

PluginDocumentSettingPanel requires a name property. Error Component Stack

Image

Proposed Solution

Update

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions