mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
fixes: templates event mapping
This commit is contained in:
parent
cc48e936ea
commit
e01f2bcff9
1 changed files with 4 additions and 5 deletions
|
|
@ -355,8 +355,6 @@ export class AppImportExportService {
|
|||
appResourceMappings.dataQueryMapping
|
||||
);
|
||||
|
||||
// !-----
|
||||
|
||||
let updateHomepageId = null;
|
||||
|
||||
if (updatedDefinition?.pages) {
|
||||
|
|
@ -384,7 +382,10 @@ export class AppImportExportService {
|
|||
});
|
||||
const pageCreated = await manager.save(newPage);
|
||||
|
||||
appResourceMappings.pagesMapping[pageId] = pageCreated.id;
|
||||
|
||||
mappedComponents.forEach((component) => {
|
||||
appResourceMappings.componentsMapping[component.id] = component.id;
|
||||
component.page = pageCreated;
|
||||
});
|
||||
|
||||
|
|
@ -451,8 +452,6 @@ export class AppImportExportService {
|
|||
}
|
||||
}
|
||||
|
||||
//!----
|
||||
|
||||
await manager.update(
|
||||
AppVersion,
|
||||
{ id: appResourceMappings.appVersionMapping[importingAppVersion.id] },
|
||||
|
|
@ -735,7 +734,7 @@ export class AppImportExportService {
|
|||
name: event.eventId,
|
||||
sourceId: mappedNewDataQuery.id,
|
||||
target: Target.dataQuery,
|
||||
event: event.event,
|
||||
event: event,
|
||||
index: queryEvents.index || index,
|
||||
appVersionId: mappedNewDataQuery.appVersionId,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue