mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-30 00:38:52 -05:00
Remove redundant first headline extraction hook
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
92e86c3564
commit
ed76d5307b
1 changed files with 0 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue