fix reports view page
This commit is contained in:
@ -43,7 +43,7 @@ export default function Reports() {
|
|||||||
const { data } = await axiosInstance.get("/api/data/locations");
|
const { data } = await axiosInstance.get("/api/data/locations");
|
||||||
setLocations(data);
|
setLocations(data);
|
||||||
console.log(data);
|
console.log(data);
|
||||||
axiosInstance.get(`api/data/reports`)
|
axiosInstance.get(`/api/data/reports`)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
let reports = res.data;
|
let reports = res.data;
|
||||||
reports.forEach((report) => {
|
reports.forEach((report) => {
|
||||||
|
Reference in New Issue
Block a user