From 103e7669d24042ae45485786b0b58d8b4aa26a0f Mon Sep 17 00:00:00 2001 From: victor barbier Date: Mon, 13 Jan 2025 15:49:41 +0100 Subject: [PATCH] fix(suggest): error when field authors was missing --- client/src/pages/suggest/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/pages/suggest/index.tsx b/client/src/pages/suggest/index.tsx index 50d3c926..c69de6f7 100644 --- a/client/src/pages/suggest/index.tsx +++ b/client/src/pages/suggest/index.tsx @@ -212,8 +212,8 @@ export default function Suggest() { disabled={items.some((item) => item.id === data.id)} isIdentified={ !!data?.authors - .map((a) => a.person) - .includes(author.id) + ?.map((a) => a.person) + ?.includes(author.id) } /> ))