We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 047873b commit cadee19Copy full SHA for cadee19
src/context/BranchContext.js
@@ -53,7 +53,7 @@ export const BranchProvider = ({ children }) => {
53
useEffect(() => {
54
const fetchBranches = async () => {
55
try {
56
- const response = await fetch(`${apiUrl}/branches`);
+ const response = await fetch(apiUrl('/api/branches'));
57
const data = await response.json();
58
59
if (data.success && data.data && data.data.branches) {
0 commit comments