We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90cadc7 commit 21b3ed6Copy full SHA for 21b3ed6
portal-ui/src/common/api/index.ts
@@ -22,7 +22,7 @@ import { ErrorResponseHandler } from "../types";
22
23
export class API {
24
invoke(method: string, url: string, data?: object) {
25
- const targetURL = `${baseUrl}${url}`.replaceAll("//", "/");
+ const targetURL = `${baseUrl}${url}`.replace(/\/\//g, "/");
26
return request(method, targetURL)
27
.send(data)
28
.then((res) => res.body)
0 commit comments