diff --git a/services/frontend/src/components/Records.tsx b/services/frontend/src/components/Records.tsx index 9a256a8..9496246 100644 --- a/services/frontend/src/components/Records.tsx +++ b/services/frontend/src/components/Records.tsx @@ -129,6 +129,10 @@ const Records: FunctionComponent = ( throw new Error(`"${name}" is falsy.`); } + if (!Array.isArray(items)) { + throw new Error(`Expected "${name}" to be an array.`); + } + const empty = items && items.length === 0; return (