Skip to content

Commit

Permalink
fix table events not being associated on version create (ToolJet#2687)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaysasidrn authored Mar 30, 2022
1 parent 7d9d49d commit 9b82ed6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions server/src/services/apps.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,22 @@ export class AppsService {
}
}
}

if (component?.component === 'Table') {
for (const column of component?.definition?.properties?.columns?.value ?? []) {
if (column?.events) {
const replacedComponentActionEvents = column.events.map((event) => {
console.log(event.queryId);
if (event.queryId) {
event.queryId = dataQueryMapping[event.queryId];
}
return event;
});
column.events = replacedComponentActionEvents;
}
}
}

definition.components[id].component = component;
}
}
Expand Down

0 comments on commit 9b82ed6

Please sign in to comment.