Skip to content

Commit 83e6674

Browse files
committed
Revert optimization that leads to issues
1 parent cdfa210 commit 83e6674

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/ng-apexcharts/src/lib/chart/chart.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ export class ChartComponent implements OnChanges, AfterViewInit, OnDestroy {
139139
}
140140

141141
private async createElement() {
142-
window.ApexCharts ||= (await import("apexcharts")).default;
142+
const { default: ApexCharts } = await import("apexcharts");
143+
window.ApexCharts ||= ApexCharts;
143144

144145
if (this._destroyed) return;
145146
if (!this.isConnected) {

0 commit comments

Comments
 (0)