Skip to content

Commit

Permalink
fix duplicate slash in path
Browse files Browse the repository at this point in the history
  • Loading branch information
sainak committed Sep 28, 2023
1 parent 7222cb4 commit c0a4d38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Redux/fireRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const fireRequest = (
const request = Object.assign({}, (routes as any)[key]);

if (path.length > 0) {
request.path += "/" + path.join("/");
request.path += path.join("/");
}

if (request.method === undefined || request.method === "GET") {
Expand Down Expand Up @@ -193,7 +193,7 @@ export const legacyFireRequest = (
const request = Object.assign({}, (routes as any)[key]);

if (path.length > 0) {
request.path += "/" + path.join("/");
request.path += path.join("/");
}

if (request.method === undefined || request.method === "GET") {
Expand Down

0 comments on commit c0a4d38

Please sign in to comment.