Skip to content

Commit

Permalink
fix: api url in metadata fetch (#1132)
Browse files Browse the repository at this point in the history
## JIRA Ticket

[BSS-309](https://jira.csiro.au/browse/BSS-309)

## Description

There was a bunch of errors being thrown on app load which was being
caused by the notebook metadata fetch pinging the incorrect url.

## Proposed Changes

- updated api URL to be fixed.

## How to Test

- ensure you are logged in and have at least one activated notebook
(survey).
- monitor console for errors.

## Additional Information

This was caused by the previous notebook rename PR.

## Checklist

- [x] I have confirmed all commits have been signed.
- [x] I have added JSDoc style comments to any new functions or classes.
- [x] Relevant documentation such as READMEs, guides, and class comments
are updated.
  • Loading branch information
luke-mcfarlane-rocketlab authored Aug 28, 2024
2 parents b757f29 + 7cfb855 commit 8125b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/sync/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const fetchProjectMetadata = async (
lst: minimalCreatedListing,
project_id: string
) => {
const url = `${lst.listing.conductor_url}/api${INDIVIDUAL_NOTEBOOK_ROUTE}${project_id}`;
const url = `${lst.listing.conductor_url}/api/notebooks/${project_id}`;
const jwt_token = await getTokenForCluster(lst.listing._id);
const full_project_id = lst.listing._id + '||' + project_id;
const response = await fetch(url, {
Expand Down

0 comments on commit 8125b7e

Please sign in to comment.