diff --git a/frontend/src/app/dashboard/component/dashboard.component.ts b/frontend/src/app/dashboard/component/dashboard.component.ts index f42c9baf2c4..97b84b2e5b1 100644 --- a/frontend/src/app/dashboard/component/dashboard.component.ts +++ b/frontend/src/app/dashboard/component/dashboard.component.ts @@ -147,18 +147,14 @@ export class DashboardComponent implements OnInit { .getSetting("logo") .pipe(untilDestroyed(this)) .subscribe(dataUri => { - this.ngZone.run(() => { - this.logo = dataUri; - }); + this.logo = dataUri; }); this.adminSettingsService .getSetting("mini_logo") .pipe(untilDestroyed(this)) .subscribe(dataUri => { - this.ngZone.run(() => { - this.miniLogo = dataUri; - }); + this.miniLogo = dataUri; }); this.adminSettingsService @@ -175,9 +171,7 @@ export class DashboardComponent implements OnInit { .getSetting(tab) .pipe(untilDestroyed(this)) .subscribe(value => { - this.ngZone.run(() => { - this.sidebarTabs[tab] = value === "true"; - }); + this.sidebarTabs[tab] = value === "true"; }); }); } diff --git a/frontend/src/app/dashboard/component/user/search-results/search-results.component.ts b/frontend/src/app/dashboard/component/user/search-results/search-results.component.ts index eb747dc0c6a..ed9c4c6d64f 100644 --- a/frontend/src/app/dashboard/component/user/search-results/search-results.component.ts +++ b/frontend/src/app/dashboard/component/user/search-results/search-results.component.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Component, EventEmitter, Input, NgZone, Output } from "@angular/core"; +import { Component, EventEmitter, Input, Output } from "@angular/core"; import { DashboardEntry } from "../../../type/dashboard-entry"; import { UserService } from "../../../../common/service/user/user.service"; @@ -47,10 +47,7 @@ export class SearchResultsComponent { @Output() notifyWorkflow = new EventEmitter(); @Output() refresh = new EventEmitter(); - constructor( - private userService: UserService, - private ngZone: NgZone - ) {} + constructor(private userService: UserService) {} getUid(): number | undefined { return this.userService.getCurrentUser()?.uid; @@ -73,14 +70,10 @@ export class SearchResultsComponent { if (this.resetCounter !== originalResetCounter) { return; } - this.ngZone.run(() => { - this.entries = [...this.entries, ...results.entries]; - this.more = results.more; - }); + this.entries = [...this.entries, ...results.entries]; + this.more = results.more; } finally { - this.ngZone.run(() => { - this.loading = false; - }); + this.loading = false; } } diff --git a/frontend/src/main.ts b/frontend/src/main.ts index 4dbf2897a15..c9e9738394d 100644 --- a/frontend/src/main.ts +++ b/frontend/src/main.ts @@ -17,7 +17,7 @@ * under the License. */ -import { enableProdMode } from "@angular/core"; +import { enableProdMode, provideZoneChangeDetection } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; import { AppModule } from "./app/app.module"; @@ -28,7 +28,9 @@ if (environment.production) { } platformBrowserDynamic() - .bootstrapModule(AppModule) + .bootstrapModule(AppModule, { + applicationProviders: [provideZoneChangeDetection()], + }) .then(() => { console.log("Texera application bootstrap completed successfully"); })