From c57c70465a9be2089bbb40dbef0ca9caaeab25ae Mon Sep 17 00:00:00 2001
From: innovaker <66737976+innovaker@users.noreply.github.com>
Date: Tue, 17 Nov 2020 14:46:49 +0000
Subject: fix(docs/codes): Patch footnotes array support

Fixes bug that was noticeable when more than one code with a footnote array was present in a table.  The symptoms were:
- footnote descriptions were duplicated
- footnote refs were not rendered
---
 docs/src/components/codes/Table.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'docs/src/components/codes/Table.jsx')

diff --git a/docs/src/components/codes/Table.jsx b/docs/src/components/codes/Table.jsx
index c7dd20c..0596de6 100644
--- a/docs/src/components/codes/Table.jsx
+++ b/docs/src/components/codes/Table.jsx
@@ -19,7 +19,7 @@ function extractFootnoteIds(codes) {
     new Set(
       codes
         .flatMap(({ footnotes }) => Object.values(footnotes))
-        .map((refs) => (Array.isArray(refs) ? refs.flat() : refs))
+        .flatMap((refs) => (Array.isArray(refs) ? refs.flat() : refs))
     )
   );
 }
-- 
cgit v1.2.3

