diff --git a/frontend/src/app/components/dashboard/dashboard.component.ts b/frontend/src/app/components/dashboard/dashboard.component.ts index 492524a44..56cfdbf82 100644 --- a/frontend/src/app/components/dashboard/dashboard.component.ts +++ b/frontend/src/app/components/dashboard/dashboard.component.ts @@ -160,9 +160,6 @@ export class DashboardComponent implements OnInit, OnDestroy { console.log('getData'); this._tables.fetchTablesFolders(this.connectionID).subscribe((res) => { - console.log('getTables folders'); - console.log(res); - const tables = res.find((item) => item.category_id === 'all-tables-kitten')?.tables || []; this.tableFolders = res; @@ -215,6 +212,12 @@ export class DashboardComponent implements OnInit, OnDestroy { } }); } + }, + (err) => { + this.isServerError = true; + this.serverError = { abstract: err.error?.message || err.message, details: err.error?.originalMessage }; + this.loading = false; + this.title.setTitle(`Error | ${this._company.companyTabTitle || 'Rocketadmin'}`); }); } diff --git a/frontend/src/app/components/ui-components/banner/banner.component.html b/frontend/src/app/components/ui-components/banner/banner.component.html index 9cdd36ab3..501068cc6 100644 --- a/frontend/src/app/components/ui-components/banner/banner.component.html +++ b/frontend/src/app/components/ui-components/banner/banner.component.html @@ -1,5 +1,5 @@