forked from jsnbuchanan/crowd-funder-for-time-pwa
feat: adjust to the new endpoints for editable plan records
This commit is contained in:
@@ -96,13 +96,14 @@ export default class ProjectsView extends Vue {
|
||||
const resp = await this.axios.get(url, { headers });
|
||||
if (resp.status === 200) {
|
||||
const claims = resp.data;
|
||||
console.log("All claims:", claims);
|
||||
for (let i = 0; i < claims.length; i++) {
|
||||
console.log(claims[i]);
|
||||
const claim = claims[i].claim;
|
||||
const data = {
|
||||
id: claims[i].id,
|
||||
name: claim.name,
|
||||
description: claim.description,
|
||||
identifier: claim.identifier,
|
||||
};
|
||||
this.projects.push(data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user