hotfix: template backup restore
This commit is contained in:
parent
7910b561ea
commit
3a956919b2
1 changed files with 5 additions and 5 deletions
|
@ -755,11 +755,11 @@ export default abstract class BackupHelper {
|
||||||
.filter((d) => availableTemplates.includes(d.scope))
|
.filter((d) => availableTemplates.includes(d.scope))
|
||||||
.map((d) => ({
|
.map((d) => ({
|
||||||
...d,
|
...d,
|
||||||
headerHeightId: templates.find((template) => template.template == d.headerHeight.template)?.id ?? null,
|
headerHeightId: templates.find((template) => template.template == d.headerHeight)?.id ?? null,
|
||||||
footerHeightId: templates.find((template) => template.template == d.footerHeight.template)?.id ?? null,
|
footerHeightId: templates.find((template) => template.template == d.footerHeight)?.id ?? null,
|
||||||
headerId: templates.find((template) => template.template == d.header.template)?.id ?? null,
|
headerId: templates.find((template) => template.template == d.header?.template)?.id ?? null,
|
||||||
bodyId: templates.find((template) => template.template == d.body.template)?.id ?? null,
|
bodyId: templates.find((template) => template.template == d.body?.template)?.id ?? null,
|
||||||
footerId: templates.find((template) => template.template == d.footer.template)?.id ?? null,
|
footerId: templates.find((template) => template.template == d.footer?.template)?.id ?? null,
|
||||||
}));
|
}));
|
||||||
availableTemplates.forEach((at) => {
|
availableTemplates.forEach((at) => {
|
||||||
if (!dataWithMappedId.some((d) => d.scope == at)) {
|
if (!dataWithMappedId.some((d) => d.scope == at)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue