Release v1.5.12
This commit is contained in:
@@ -9,6 +9,7 @@ function buildDefaultTemplate() {
|
||||
canvas_size_height: 1080,
|
||||
background_color: '#111111',
|
||||
background_image_path: '',
|
||||
region_usage: [],
|
||||
regions: []
|
||||
};
|
||||
}
|
||||
|
||||
@@ -6,6 +6,9 @@ module.exports = function renderTemplatesPage(data, message, currentUser) {
|
||||
name: template.name,
|
||||
canvas_size_width: template.canvas_size_width,
|
||||
canvas_size_height: template.canvas_size_height,
|
||||
slideCount: template.slide_count !== undefined
|
||||
? Number(template.slide_count) || 0
|
||||
: 0,
|
||||
regionCount: template.region_count !== undefined
|
||||
? Number(template.region_count) || 0
|
||||
: (data.templateRegions || []).filter((region) => region.template_id === template.id).length
|
||||
|
||||
Reference in New Issue
Block a user