Skip to content

Commit

Permalink
Fix base url for local data
Browse files Browse the repository at this point in the history
Signed-off-by: Jay Wang <jay@zijie.wang>
  • Loading branch information
xiaohk committed Jul 7, 2024
1 parent de80bd7 commit 8f3dba1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/recommender-view/recommender-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,9 @@ export class RecRecRecommenderView extends LitElement {
// Custom Methods ||
//==========================================================================||
async initData() {
const response = await fetch('/data/award-recipients.json');
const response = await fetch(
`${import.meta.env.BASE_URL}data/award-recipients.json`
);
const awardData = (await response.json()) as Record<
string,
AcademicAward[]
Expand Down

0 comments on commit 8f3dba1

Please sign in to comment.