fix so that project agent & location removals get saved

This commit is contained in:
2024-03-23 02:31:44 -06:00
parent cf2e800dec
commit c3fd27b140

View File

@@ -265,6 +265,8 @@ export default class NewEditProjectView extends Vue {
vcClaim.agent = {
identifier: this.agentDid,
};
} else {
delete vcClaim.agent;
}
if (this.includeLocation) {
vcClaim.location = {
@@ -274,6 +276,8 @@ export default class NewEditProjectView extends Vue {
longitude: this.longitude,
},
};
} else {
delete vcClaim.location;
}
// Make a payload for the claim
const vcPayload = {