Skip to content

Commit 5da4111

Browse files
committed
Pass launchSpec correctly
1 parent d6b549f commit 5da4111

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

binderhub/static/js/pages/HomePage.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ export function HomePage({ providers, publicBaseUrl, baseUrl }) {
2323
const [progressState, setProgressState] = useState(null);
2424

2525
useEffect(() => {
26-
setSpec(new Spec(`${selectedProvider.id}/${repo}/${ref}`, rtp));
26+
setSpec(
27+
new Spec(
28+
`${selectedProvider.id}/${repo}/${ref}`,
29+
new LaunchSpec(urlPath),
30+
),
31+
);
2732
}, [selectedProvider, repo, ref, urlPath]);
2833

2934
return (

0 commit comments

Comments
 (0)