Use the highlightsRef when opening the all highlights modal

This commit is contained in:
Jackson Harper 2022-11-30 10:03:16 +08:00
parent 885e80fb46
commit ce8c023733

View file

@ -430,7 +430,7 @@ export default function PdfArticleContainer(
)}
{props.showHighlightsModal && (
<HighlightsModal
highlights={props.article.highlights}
highlights={highlightsRef.current}
onOpenChange={() => props.setShowHighlightsModal(false)}
/>
)}