Skip to content

Commit

Permalink
Fixed issue with loading sources
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Jun 23, 2021
1 parent 8ed495a commit dd441c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/src/app/dashboard/view/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function Dashboard () {
}

async function loadSources() {
const s = sourceLoader.get();
const s = await sourceLoader.get();
if (response.ok) {
setSources(s);
}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/metadata/hooks/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function getMetadataPath(type) {
}

export function useNonAdminSources() {
return useFetch(`/${getMetadataPath('source')}/disabledNonAdmin`);
return useFetch(`${API_BASE_PATH}${getMetadataPath('source')}/disabledNonAdmin`);
}

export function getMetadataListPath(type) {
Expand Down

0 comments on commit dd441c5

Please sign in to comment.