forked from jsnbuchanan/crowd-funder-for-time-pwa
add page for user profile view and update endpoints; rename any "rowid" to "rowId"
This commit is contained in:
@@ -361,14 +361,14 @@ export default class ProjectsView extends Vue {
|
||||
if (resp.status === 200 && resp.data.data) {
|
||||
const plans: PlanData[] = resp.data.data;
|
||||
for (const plan of plans) {
|
||||
const { name, description, handleId, image, issuerDid, rowid } = plan;
|
||||
const { name, description, handleId, image, issuerDid, rowId } = plan;
|
||||
this.projects.push({
|
||||
name,
|
||||
description,
|
||||
image,
|
||||
handleId,
|
||||
issuerDid,
|
||||
rowid,
|
||||
rowId,
|
||||
});
|
||||
}
|
||||
} else {
|
||||
@@ -395,7 +395,7 @@ export default class ProjectsView extends Vue {
|
||||
async loadMoreProjectData(payload: boolean) {
|
||||
if (this.projects.length > 0 && payload) {
|
||||
const latestProject = this.projects[this.projects.length - 1];
|
||||
await this.loadProjects(`beforeId=${latestProject.rowid}`);
|
||||
await this.loadProjects(`beforeId=${latestProject.rowId}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user