[appdef] Pages attributes are missing on versioning or imported app (#7904)

* fixes: on creating new version pages attributes are not copied

* fixes: on importing apps with  pages attributes are not copied

* fixes: component double duplication issues
This commit is contained in:
Arpit 2023-10-17 13:37:03 +05:30 committed by GitHub
parent 6875e3705f
commit e8d3bf3dbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -379,6 +379,8 @@ export class AppImportExportService {
handle: page.handle,
appVersionId: appResourceMappings.appVersionMapping[importingAppVersion.id],
index: pagePostionIntheList,
disabled: page.disabled || false,
hidden: page.hidden || false,
});
const pageCreated = await manager.save(newPage);
@ -652,6 +654,8 @@ export class AppImportExportService {
handle: page.handle,
appVersionId: appResourceMappings.appVersionMapping[importingAppVersion.id],
index: page.index,
disabled: page.disabled || false,
hidden: page.hidden || false,
});
const pageCreated = await manager.save(newPage);

View file

@ -479,6 +479,8 @@ export class AppsService {
name: page.name,
handle: page.handle,
index: page.index,
disabled: page.disabled,
hidden: page.hidden,
appVersionId: appVersion.id,
})
);