Skip to content

Commit

Permalink
Merge pull request #111 from kaleido-io/run
Browse files Browse the repository at this point in the history
Fix URL building in UI
  • Loading branch information
nguyer authored Jan 12, 2023
2 parents 6a6f014 + f167797 commit ba87d69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/components/Buttons/RunButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ export const RunButton: React.FC<Props> = ({ endpoint, payload, disabled }) => {
if (!isBlob) {
reqDetails.headers = { 'Content-Type': 'application/json' };
}
const postUrlPrefix = new URL(
const url = new URL(
`${window.location.protocol}//${window.location.hostname}:${window.location.port}`
);
const url = new URL(`${postUrlPrefix}${postEndpoint}`);
url.pathname = postEndpoint;
const currentNamespace = localStorage.getItem(
SANDBOX_LOCAL_STORAGE_ITEM_NAME
);
Expand Down

0 comments on commit ba87d69

Please sign in to comment.