From 6534d63c9d619c10c13094913bd821061b8fa9df Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Wed, 9 Jul 2025 20:52:47 +0200 Subject: [PATCH] Reorder --- .../asset-profile-dialog.component.ts | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts b/apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts index bc5423faf..3dad22488 100644 --- a/apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts +++ b/apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts @@ -200,6 +200,16 @@ export class AssetProfileDialog implements OnDestroy, OnInit { public initialize() { this.historicalDataItems = undefined; + this.adminService + .fetchAdminData() + .pipe(takeUntil(this.unsubscribeSubject)) + .subscribe(({ settings }) => { + this.isDataGatheringEnabled = + settings[PROPERTY_IS_DATA_GATHERING_ENABLED] === false ? false : true; + + this.changeDetectorRef.markForCheck(); + }); + this.userService.stateChanged .pipe(takeUntil(this.unsubscribeSubject)) .subscribe((state) => { @@ -289,16 +299,6 @@ export class AssetProfileDialog implements OnDestroy, OnInit { this.changeDetectorRef.markForCheck(); }); - - this.adminService - .fetchAdminData() - .pipe(takeUntil(this.unsubscribeSubject)) - .subscribe(({ settings }) => { - this.isDataGatheringEnabled = - settings[PROPERTY_IS_DATA_GATHERING_ENABLED] === false ? false : true; - - this.changeDetectorRef.markForCheck(); - }); } public onCancelEditAssetProfileIdentifierMode() {