Skip to content

Commit

Permalink
Trigger save with delete host event
Browse files Browse the repository at this point in the history
  • Loading branch information
adityamittal3107 committed Nov 26, 2024
1 parent 08116f6 commit f2a8e9c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/embed/ts-embed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -976,6 +976,11 @@ export class TsEmbed {
this.handleError('Host event type is undefined');
return null;
}
if (messageType === HostEvent.Delete) {
const trigger = processTrigger(this.iFrame, messageType, this.thoughtSpotHost, data);
processTrigger(this.iFrame, HostEvent.Save, this.thoughtSpotHost, data);
return trigger;
}
return processTrigger(this.iFrame, messageType, this.thoughtSpotHost, data);
}

Expand Down

0 comments on commit f2a8e9c

Please sign in to comment.