Skip to content

Commit

Permalink
fix: event on error after release
Browse files Browse the repository at this point in the history
  • Loading branch information
skie1997 committed Oct 26, 2023
1 parent efc69e3 commit bf9509e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vchart/src/core/vchart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -989,8 +989,8 @@ export class VChart implements IVChart {
on(eType: EventType, handler: EventCallback<EventParams>): void;
on(eType: EventType, query: EventQuery, handler: EventCallback<EventParams>): void;
on(eType: EventType, query: EventQuery | EventCallback<EventParams>, handler?: EventCallback<EventParams>): void {
if (!this._userEvents || this._userEvents.length === 0) {
return;
if (!this._userEvents) {
this._userEvents = [];
}
this._userEvents.push({
eType,
Expand Down

0 comments on commit bf9509e

Please sign in to comment.