From 5b9a091029f3bc8cdc7cdb08bef078484b8181fd Mon Sep 17 00:00:00 2001 From: khalilcodes Date: Mon, 13 Jun 2022 22:48:01 +0300 Subject: [PATCH] [site/links][xs]: modify path source --- site/components/Tooltip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/components/Tooltip.js b/site/components/Tooltip.js index 619b7c9..99be3f7 100644 --- a/site/components/Tooltip.js +++ b/site/components/Tooltip.js @@ -117,7 +117,7 @@ export const Tooltip = ({ render, ...props }) => { if (filePath.includes('notes')) { return } - const page = allOtherPages.find(p => p._raw.sourceFilePath === filePath) + const page = allOtherPages.find(p => p._raw.flattenedPath === filePath) content = documentExtract(page.body.raw); } catch { return