Skip to content

Commit

Permalink
fix: attrib create
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphg6 committed Sep 5, 2023
1 parent 6d430e8 commit 180c447
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Menu/Edit/Edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {} };
Expand Down

0 comments on commit 180c447

Please sign in to comment.