Skip to content
Snippets Groups Projects
Commit b506811b authored by Adam Reichold's avatar Adam Reichold Committed by Björn Berger
Browse files

Fix formatting of origins in search results view

The UI always formats origins with backslashes instead of slashes
and elides the leading backslash. The search results view failed
to honour this convention.
parent 381c4d07
No related branches found
No related tags found
1 merge request!116Fix formatting of origins in search results view
......@@ -86,7 +86,9 @@ function Result({ dataset }: { dataset: Dataset }) {
.filter(Boolean)
.join(', ')
const origins = (dataset.origins ?? []).join(', ')
const origins = (dataset.origins ?? [])
.map((origin) => origin.slice(1).split('/').join('\\'))
.join(', ')
const onClick = useCallback(
(event: React.MouseEvent<HTMLAnchorElement>) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.