Skip to content

Commit

Permalink
check if content is array
Browse files Browse the repository at this point in the history
  • Loading branch information
MonikaCat committed Nov 1, 2023
1 parent f49eafb commit e334bfd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Overview: FC<{ className?: string; overview: OverviewType }> = ({ classNam
const { t } = useAppTranslation('proposals');

let types: string[] = [];
if (overview.content.length > 1) {
if (Array.isArray(overview.content)) {
overview.content.forEach((type: string) => {
types.push(getProposalType(R.pathOr('', ['@type'], type)));
});
Expand Down

0 comments on commit e334bfd

Please sign in to comment.