Remove redundant first headline extraction hook

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2022-01-05 21:03:19 +01:00
parent 92e86c3564
commit ed76d5307b

View file

@ -49,8 +49,6 @@ export const SlideshowMarkdownRenderer: React.FC<SlideshowMarkdownRendererProps
const markdownReactDom = useConvertMarkdownToReactDom(markdownContentLines, extensions, newlinesAreBreaks) const markdownReactDom = useConvertMarkdownToReactDom(markdownContentLines, extensions, newlinesAreBreaks)
const revealStatus = useReveal(markdownContentLines, slideOptions) const revealStatus = useReveal(markdownContentLines, slideOptions)
useExtractFirstHeadline(markdownBodyRef, onFirstHeadingChange)
const extractFirstHeadline = useExtractFirstHeadline(markdownBodyRef, onFirstHeadingChange) const extractFirstHeadline = useExtractFirstHeadline(markdownBodyRef, onFirstHeadingChange)
useEffect(() => { useEffect(() => {
if (revealStatus === REVEAL_STATUS.INITIALISED) { if (revealStatus === REVEAL_STATUS.INITIALISED) {