Skip to content

Commit

Permalink
chore: Update mailings-new-modal.vue to improve template selection an…
Browse files Browse the repository at this point in the history
…d handling
  • Loading branch information
omar-bear committed Jul 16, 2024
1 parent a7bfa42 commit d6a30d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/server/template/template.schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ TemplateSchema.statics.findForApi = async function findForApi(query = {}) {

const finalTemplates = templates.map(({ assets, ...template }) => ({
...template,
id: template._id,
hasMarkup: templatesWithMarkupSet.has(template._id.toString()),
coverImage: JSON.parse(assets)?.['_full.png'] || null,
}));
Expand Down

0 comments on commit d6a30d6

Please sign in to comment.