From be8e89b1c67703044b45b93cc77b78b72d2c7b15 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Wed, 2 Oct 2024 17:24:13 +0200 Subject: [PATCH] Fix extension not showing in DataDialog for collection elements --- client/src/components/DataDialog/services.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/components/DataDialog/services.js b/client/src/components/DataDialog/services.js index 7b3816e07dc2..319213d59733 100644 --- a/client/src/components/DataDialog/services.js +++ b/client/src/components/DataDialog/services.js @@ -48,6 +48,7 @@ export class Services { /** Populate record data from raw record source **/ getRecord(record) { const host = `${window.location.protocol}//${window.location.hostname}:${window.location.port}`; + record.extension = record.extension ?? record.file_ext; record.details = record.extension || record.description; record.time = record.update_time || record.create_time; record.isLeaf = this.isDataset(record);