Skip to content
Snippets Groups Projects
Commit 58a2d84c authored by Greg Fodor's avatar Greg Fodor
Browse files

Fix for new hub api

parent e3ce377e
No related branches found
No related tags found
No related merge requests found
......@@ -259,7 +259,8 @@ const onReady = async () => {
return;
}
const hubId = document.location.pathname.substring(1);
const hubId = document.location.pathname.substring(1).split("/")[0];
console.log(`Hub ID: ${hubId}`);
const res = await fetch(`/api/v1/hubs/${hubId}`);
const data = await res.json();
const hub = data.hubs[0];
......
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