summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinnovaker <66737976+innovaker@users.noreply.github.com>2020-11-17 14:46:49 +0000
committerinnovaker <66737976+innovaker@users.noreply.github.com>2020-11-18 10:45:40 +0000
commitc57c70465a9be2089bbb40dbef0ca9caaeab25ae (patch)
tree97a3f8c9f75b39bbd2a248691c164d1fc0d630c6
parentd5250f0449ad66de07d38ba964052c184c286224 (diff)
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
-rw-r--r--docs/src/components/codes/Table.jsx2
1 files changed, 1 insertions, 1 deletions
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))
)
);
}