diff --git a/bitwarden_license/bit-web/src/app/dirt/access-intelligence/all-applications.component.ts b/bitwarden_license/bit-web/src/app/dirt/access-intelligence/all-applications.component.ts index 4a0333f3369..eca2320a7ff 100644 --- a/bitwarden_license/bit-web/src/app/dirt/access-intelligence/all-applications.component.ts +++ b/bitwarden_license/bit-web/src/app/dirt/access-intelligence/all-applications.component.ts @@ -93,6 +93,12 @@ export class AllApplicationsComponent implements OnInit { this.dataService.reportResults$ .pipe(takeUntilDestroyed(this.destroyRef)) .subscribe((report) => { + // Check if we already have data in the dataSource (from previous session) + if (this.dataSource.data.length > 0) { + this.hasShownNoDataModal = false; // Reset flag since we have data + return; + } + if (report && report.data && report.data.length > 0) { this.dataSource.data = report.data; // this.applicationSummary = this.reportService.generateApplicationsSummary(report.data); @@ -121,13 +127,6 @@ export class AllApplicationsComponent implements OnInit { }); } - /** - * Checks if the modal should be shown based on current data state - */ - private shouldShowNoDataModal(): boolean { - return !this.dataSource.data || this.dataSource.data.length === 0; - } - goToCreateNewLoginItem = async () => { // TODO: implement this.toastService.showToast({