Skip to content

Commit d88f3bf

Browse files
Hari KiranHari Kiran
authored andcommitted
Fix Preview bug
1 parent 1fd71b6 commit d88f3bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pages/DatasetDetailPage.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,9 +419,13 @@ const DatasetDetailPage: React.FC = () => {
419419
}
420420
};
421421

422+
const fileName = typeof dataOrUrl === "string" ? extractFileName(dataOrUrl) : "";
423+
console.log("🔍 Extracted fileName:", fileName);
424+
422425
const isPreviewableFile = (fileName: string): boolean => {
423426
return /\.(nii\.gz|jdt|jdb|bmsh|jmsh|bnii)$/i.test(fileName);
424427
};
428+
console.log("🧪 isPreviewableFile:", isPreviewableFile(fileName));
425429

426430
if (isInternal) {
427431
try {

0 commit comments

Comments
 (0)