mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
Fixes error thrown by events
This commit is contained in:
parent
0cbc250689
commit
e720bbe007
1 changed files with 3 additions and 2 deletions
|
|
@ -64,9 +64,10 @@ export function runTransformation(_ref, rawData, transformation, query) {
|
|||
}
|
||||
|
||||
export async function executeActionsForEventId(_ref, eventId, component, mode) {
|
||||
const events = component.definition.events.filter(event => event.eventId === eventId);
|
||||
const events = component.definition.events || [];
|
||||
const filteredEvents = events.filter(event => event.eventId === eventId);
|
||||
|
||||
for(const event of events) {
|
||||
for(const event of filteredEvents) {
|
||||
await executeAction(_ref, event, mode);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue