Skip to content

Tree Table getting the warning as two children with the same key #1864

@Abuthahir-infocore

Description

@Abuthahir-infocore

Please help us with the below issue

index.js:1 Warning: Encountered two children with the same key, null. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
<TreeTable value={this.state.items} expandedKeys={this.state.expandedKeys} onToggle={(e) => {this.handleclicktree(e)}}
onRowClick={this.handleclickvalue} className="p-datatable-sm" style={{marginLeft: '2px'}} scrollable
scrollHeight="440px" resizableColumns columnResizeMode="fit" selectionMode="single" >
<Column style={{ width:'9%'}} expander/>
<Column body={this.imageBodyTemplate} style={{ width:'6%'}}/>







image

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions