Skip to content

Commit

Permalink
fix(abc:st): fix invalid total of global config (#1583)
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk authored Feb 15, 2023
1 parent 03e2dc5 commit fa8087f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/abc/st/st.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,6 @@ export class STComponent implements AfterViewInit, OnChanges, OnDestroy {
configSrv: AlainConfigService,
private cms: NzContextMenuService
) {
this.setCog(configSrv.merge('st', ST_DEFAULT_CONFIG)!);

this.delonI18n.change.pipe(takeUntil(this.destroy$)).subscribe(() => {
this.locale = this.delonI18n.getData('st');
if (this._columns.length > 0) {
Expand All @@ -276,6 +274,8 @@ export class STComponent implements AfterViewInit, OnChanges, OnDestroy {
filter(() => this._columns.length > 0)
)
.subscribe(() => this.refreshColumns());

this.setCog(configSrv.merge('st', ST_DEFAULT_CONFIG)!);
}

private setCog(cog: AlainSTConfig): void {
Expand Down

0 comments on commit fa8087f

Please sign in to comment.