Skip to content

Commit

Permalink
Handle situation where ref isn't enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Dec 12, 2024
1 parent d16f2ea commit aa19f64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion binderhub/static/js/components/LinkGenerator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ export function LinkGenerator({
let launchUrl = "";
let badgeMarkup = "";

const ref = reference || selectedProvider.ref.default;
const ref =
reference ||
(selectedProvider.ref.enabled ? selectedProvider.ref.default : "");
if (repo !== "" && (!selectedProvider.ref.enabled || ref !== "")) {
launchUrl = makeShareableUrl(
publicBaseUrl,
Expand Down

0 comments on commit aa19f64

Please sign in to comment.