An error occurred while fetching this tab.
Fix externalURLs alert logic
There are no commits yet
Push commits to the source branch or add previously merged commits to review them.
Created by: felixfbecker
Fixes https://github.com/sourcegraph/customer/issues/118
The issue was that the code assumed the array always had an element, but it doesn't need to have. I also noticed that we didn't check whether we actually support the code host. With this PR, we take the first code host from external links that we support, and show nothing if there is none.
cc @dadlerj
Push commits to the source branch or add previously merged commits to review them.