From 274c04131f074b26a172d2844f4ccb40e7b9e9e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Szczepanik?= Date: Wed, 1 May 2024 02:12:42 +0200 Subject: [PATCH] Remove void statement which can cause errors Actual handling of "homepage" seems to happen a few lines above, and uses optional chaining (`?.`), so it seems these lines can be removed with no negative consequences. If left in, they cause errors when the additional display does not contain "homepage". --- datalad_catalog/catalog/assets/app_component_dataset.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/datalad_catalog/catalog/assets/app_component_dataset.js b/datalad_catalog/catalog/assets/app_component_dataset.js index acb2a23..edbff7e 100644 --- a/datalad_catalog/catalog/assets/app_component_dataset.js +++ b/datalad_catalog/catalog/assets/app_component_dataset.js @@ -499,8 +499,6 @@ const datasetView = () => } else { return null } - selectedDS.additional_display[0]["content"]["homepage"]["@value"] - return // "spatialCoverage", // Text or Place // "temporalCoverage", // Text // "variableMeasured", // Text or PropertyValue