From 8609bcb65a48aa80a262d16561471fb972f0eba1 Mon Sep 17 00:00:00 2001 From: omar-bear Date: Tue, 16 Jul 2024 13:49:44 +0100 Subject: [PATCH 1/2] chore: Add id field to finalTemplates in findForApi function --- packages/server/template/template.schema.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/server/template/template.schema.js b/packages/server/template/template.schema.js index bc37aec3..c73cab41 100644 --- a/packages/server/template/template.schema.js +++ b/packages/server/template/template.schema.js @@ -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, })); From 666b1ed49ef0b32e3df8590df5c892fe1cd8eccb Mon Sep 17 00:00:00 2001 From: omar-bear Date: Tue, 16 Jul 2024 13:51:16 +0100 Subject: [PATCH 2/2] chore: Update max-height in mailings-new-modal.vue to use 50vh instead of 500px --- packages/ui/routes/mailings/__partials/mailings-new-modal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/routes/mailings/__partials/mailings-new-modal.vue b/packages/ui/routes/mailings/__partials/mailings-new-modal.vue index e0ec8617..0b022135 100644 --- a/packages/ui/routes/mailings/__partials/mailings-new-modal.vue +++ b/packages/ui/routes/mailings/__partials/mailings-new-modal.vue @@ -134,7 +134,7 @@ export default {