fix: quick links memoization #9436

This commit is contained in:
Konstantinos Kaloutas
2023-05-24 13:25:14 +03:00
parent c34d5c92f2
commit cd8e4b8d0b

View File

@@ -25,7 +25,7 @@ export const QuickLinks: TLQuickLinksComponent<Shape> = observer(({ shape }) =>
link[0].toLowerCase() !== app.currentPage.name &&
handlers.getBlockPageName(link[0]) !== app.currentPage.name
)
}, [shape.props.type, shape.props.parentId, shape.props.refs])
}, [shape.props.id, shape.props.type, shape.props.parentId, shape.props.refs])
if (links.length === 0) return null