diff --git a/src/pages/Menu/Edit/Edit.tsx b/src/pages/Menu/Edit/Edit.tsx index 80cce63..a18ff6a 100644 --- a/src/pages/Menu/Edit/Edit.tsx +++ b/src/pages/Menu/Edit/Edit.tsx @@ -66,8 +66,8 @@ export const EditMenu = () => { setHasConditions(data.menu.hasConditions); setParameters(data.menu.parameters); setMetaWithErrors( - data?.menu.meta - ?.map(m => { + (data?.menu.meta || []) + .map(m => { const { __typename, ...rest } = m; if (!rest.defaultValue) rest.defaultValue = ''; return { ...rest, errors: {} };