Skip to content

Commit

Permalink
fix: edit template without meta
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphg6 committed Sep 3, 2023
1 parent 62825e6 commit ab7744e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Menu/EditTemplate/EditTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export const EditTemplateMenu = () => {
.filter(item => !item.parentId)
.sort((a, b) => a.order - b.order) || [];
const { name } = menu;
const meta = menu.meta.map((meta: GraphQLData<IMenuMeta>) => {
const meta = (menu.meta || []).map((meta: GraphQLData<IMenuMeta>) => {
const { __typename, ...rest } = meta;
return rest;
});
Expand Down

0 comments on commit ab7744e

Please sign in to comment.