Skip to content

Commit

Permalink
Merge pull request #2230 from scottsut/dev
Browse files Browse the repository at this point in the history
fix: Base URL of plugin charts
  • Loading branch information
scottsut authored Aug 24, 2023
2 parents fc4d67e + 9bb9db5 commit df210f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/app/utils/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
transformToViewConfig,
} from 'app/utils/internalChartHelper';
import { saveAs } from 'file-saver';
import { PUBLIC_URL } from 'globalConstants';
import { BASE_RESOURCE_URL } from 'globalConstants';
import i18next from 'i18next';
import qs from 'qs';
import { request2, requestWithHeader } from 'utils/request';
Expand Down Expand Up @@ -251,7 +251,7 @@ export async function downloadFile(id) {

export async function fetchPluginChart(path) {
const result = await request2(path, {
baseURL: PUBLIC_URL,
baseURL: BASE_RESOURCE_URL,
headers: { Accept: 'application/javascript' },
}).catch(error => {
console.error(error);
Expand Down

0 comments on commit df210f7

Please sign in to comment.