Skip to content

Commit

Permalink
Merge pull request #811 from Badsender-com/fix-bug-clever
Browse files Browse the repository at this point in the history
chore: Add id field to finalTemplates in findForApi function
  • Loading branch information
omar-bear committed Jul 17, 2024
2 parents a6481df + 666b1ed commit d642863
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default {
<style>
.bs-templates_container {
max-height: 500px;
max-height: 50vh;
overflow: auto;
}
</style>

0 comments on commit d642863

Please sign in to comment.