Skip to content

Commit

Permalink
Fixed data not showing on installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiky30 committed Sep 2, 2024
1 parent 3644601 commit 8f63971
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ section.append(tableContainer);
let loadTableData = function (deviceModuleId) {

// const url = section.getAttribute("data-json-feed")
const url = "http://localhost:8000/api/v1/device-module-readings/"
const url = window.location.origin + "/api/v1/device-module-readings/"
const endpoint = new URL(url);
endpoint.searchParams.append("device_module", deviceModuleId);
endpoint.searchParams.append("format", "json");
Expand Down

0 comments on commit 8f63971

Please sign in to comment.