Skip to content

Commit

Permalink
Remove void statement which can cause errors
Browse files Browse the repository at this point in the history
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".
  • Loading branch information
mslw authored and jsheunis committed May 10, 2024
1 parent af02140 commit f09f369
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions datalad_catalog/catalog/assets/app_component_dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f09f369

Please sign in to comment.