Skip to content

Commit

Permalink
Update QueueSelector.js
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 authored Feb 4, 2021
1 parent 1a91015 commit c3792a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/QueueSelector/QueueSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const getQueueCounts = async (access_token) => {
myHeaders.append("Authorization", `Bearer ${access_token}`);
let requestOptions = { headers: myHeaders };

const apiResponse = await fetch(`/api/data/get_queues`, requestOptions);
const apiResponse = await fetch(`${process.env.PUBLIC_URL}/api/data/get_queues`, requestOptions);
const queueCountJson = await apiResponse.json();

return queueCountJson;
Expand Down Expand Up @@ -173,4 +173,4 @@ QueueSelector.propTypes = {
"value": PropTypes.array.isRequired,
/** Function to update state variable that manages selected queues. */
"setValue": PropTypes.func.isRequired,
};
};

0 comments on commit c3792a0

Please sign in to comment.