Skip to content

Commit 784bfc4

Browse files
authored
Merge pull request #1394 from finos/1384-fix-cancel-api-base
fix: correct the API base url used to call cancel push in admin UI
2 parents 2452f10 + 22afab2 commit 784bfc4

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

package-lock.json

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ui/services/git-push.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ const cancelPush = async (
119119
setAuth: (auth: boolean) => void,
120120
setIsError: (isError: boolean) => void,
121121
): Promise<void> => {
122-
const baseUrl = await getBaseUrl();
123-
const url = `${baseUrl}/push/${id}/cancel`;
122+
const apiV1Base = await getApiV1BaseUrl();
123+
const url = `${apiV1Base}/push/${id}/cancel`;
124124
await axios.post(url, {}, getAxiosConfig()).catch((error: any) => {
125125
if (error.response && error.response.status === 401) {
126126
setAuth(false);

vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ export default ({ mode }: { mode: string }) => {
99
},
1010
server: {
1111
port: 3000,
12+
watch: {
13+
ignored: ['**/.data/**', '**/.remote/**', '**/.tmp/**'],
14+
},
1215
},
1316
plugins: [react()],
1417
define: {

0 commit comments

Comments
 (0)