fix so that project agent & location removals get saved
This commit is contained in:
@@ -265,6 +265,8 @@ export default class NewEditProjectView extends Vue {
|
|||||||
vcClaim.agent = {
|
vcClaim.agent = {
|
||||||
identifier: this.agentDid,
|
identifier: this.agentDid,
|
||||||
};
|
};
|
||||||
|
} else {
|
||||||
|
delete vcClaim.agent;
|
||||||
}
|
}
|
||||||
if (this.includeLocation) {
|
if (this.includeLocation) {
|
||||||
vcClaim.location = {
|
vcClaim.location = {
|
||||||
@@ -274,6 +276,8 @@ export default class NewEditProjectView extends Vue {
|
|||||||
longitude: this.longitude,
|
longitude: this.longitude,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
} else {
|
||||||
|
delete vcClaim.location;
|
||||||
}
|
}
|
||||||
// Make a payload for the claim
|
// Make a payload for the claim
|
||||||
const vcPayload = {
|
const vcPayload = {
|
||||||
|
|||||||
Reference in New Issue
Block a user