diff --git a/eda/eda_app/src/app/module/pages/dashboard/global-filter-dialog/global-filter-dialog.component.html b/eda/eda_app/src/app/module/pages/dashboard/global-filter-dialog/global-filter-dialog.component.html
index 63a031d8c..cf8ca5f30 100644
--- a/eda/eda_app/src/app/module/pages/dashboard/global-filter-dialog/global-filter-dialog.component.html
+++ b/eda/eda_app/src/app/module/pages/dashboard/global-filter-dialog/global-filter-dialog.component.html
@@ -53,7 +53,7 @@
diff --git a/eda/eda_app/src/app/module/pages/dashboard/global-filter-dialog/global-filter-dialog.component.ts b/eda/eda_app/src/app/module/pages/dashboard/global-filter-dialog/global-filter-dialog.component.ts
index cc1b529d4..be422058f 100644
--- a/eda/eda_app/src/app/module/pages/dashboard/global-filter-dialog/global-filter-dialog.component.ts
+++ b/eda/eda_app/src/app/module/pages/dashboard/global-filter-dialog/global-filter-dialog.component.ts
@@ -256,8 +256,11 @@ export class GlobalFilterDialogComponent implements OnInit, OnDestroy {
const pathList = this.globalFilter.pathList;
if (this.globalFilter.selectedTable.table_name !== table_id.split('.')[0]) {
- this.alertService.addWarning(`Invalid path for selected filter`);
- pathList[panel.id].selectedTableNodes = undefined;
+ this.alertService.addWarning($localize`:@@invalidPathForm: Ruta incorrecta para el filtro seleccionado`);
+ setTimeout(() => {
+ pathList[panel.id].table_id = null;
+ pathList[panel.id].selectedTableNodes = undefined;
+ }, 100);
} else {
pathList[panel.id].table_id = table_id;
pathList[panel.id].path = node.joins || [];
@@ -300,7 +303,7 @@ export class GlobalFilterDialogComponent implements OnInit, OnDestroy {
}
public isEmpty(obj: any): boolean {
- return !obj || Object.keys(obj).length === 0;
+ return Object.keys(obj||{}).length === 0;
}
private validateGlobalFilter(): boolean {
diff --git a/eda/eda_app/src/locale/messages.ca.xlf b/eda/eda_app/src/locale/messages.ca.xlf
index c304e8a50..cf8f6b3da 100644
--- a/eda/eda_app/src/locale/messages.ca.xlf
+++ b/eda/eda_app/src/locale/messages.ca.xlf
@@ -4270,6 +4270,10 @@
No es pot eliminar la columna perquè hi ha vinculat un Filtre
+
+
+ Ruta incorrecte per el filtre seleccionat
+