fix wrong tree sync bug (#514)

This commit is contained in:
Philip Okugbe
2024-11-28 19:39:38 +00:00
committed by GitHub
parent f178e6654f
commit 311d81bc71
2 changed files with 23 additions and 19 deletions

View File

@ -191,7 +191,7 @@ export default function SpaceTree({ spaceId, readOnly }: SpaceTreeProps) {
<div ref={mergedRef} className={classes.treeContainer}>
{rootElement.current && (
<Tree
data={data}
data={data.filter((node) => node?.spaceId === spaceId)}
disableDrag={readOnly}
disableDrop={readOnly}
disableEdit={readOnly}