[components/tooltip][m]: minor behavior change
This commit is contained in:
parent
86c1f8f4cb
commit
5b3b07e0f1
|
|
@ -120,7 +120,7 @@ export const Tooltip = ({ render, ...props }) => {
|
||||||
const page = allOtherPages.find(p => p._raw.sourceFilePath === filePath)
|
const page = allOtherPages.find(p => p._raw.sourceFilePath === filePath)
|
||||||
content = documentExtract(page.body.raw);
|
content = documentExtract(page.body.raw);
|
||||||
} catch {
|
} catch {
|
||||||
content = 'An error occured...'
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
setTooltipContent(content);
|
setTooltipContent(content);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue