From 5a19fe0d16085922a8c9f3b2be77614632375a4c Mon Sep 17 00:00:00 2001 From: Mohab Date: Sun, 27 Sep 2026 17:16:19 +0300 Subject: [PATCH] fix: restrict CSV browser to CSV files --- .../project-file-explorer/project-file-explorer.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Analysim.Web/ClientApp/src/app/projects/project-file-explorer/project-file-explorer.component.ts b/src/Analysim.Web/ClientApp/src/app/projects/project-file-explorer/project-file-explorer.component.ts index 737ab9d2..3ff2c442 100644 --- a/src/Analysim.Web/ClientApp/src/app/projects/project-file-explorer/project-file-explorer.component.ts +++ b/src/Analysim.Web/ClientApp/src/app/projects/project-file-explorer/project-file-explorer.component.ts @@ -507,7 +507,9 @@ export class ProjectFileExplorerComponent implements OnInit { ) this.filePreview = true this.dataBrowserURL += file.uri; - this.csvFile = file; + if (file.extension.toLowerCase() == ".csv") { + this.csvFile = file; + } console.log(this.dataBrowserURL); }