Skip to content

Commit 8f3dba1

Browse files
committed
Fix base url for local data
Signed-off-by: Jay Wang <[email protected]>
1 parent de80bd7 commit 8f3dba1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/recommender-view/recommender-view.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,9 @@ export class RecRecRecommenderView extends LitElement {
283283
// Custom Methods ||
284284
//==========================================================================||
285285
async initData() {
286-
const response = await fetch('/data/award-recipients.json');
286+
const response = await fetch(
287+
`${import.meta.env.BASE_URL}data/award-recipients.json`
288+
);
287289
const awardData = (await response.json()) as Record<
288290
string,
289291
AcademicAward[]

0 commit comments

Comments
 (0)