Browse Source

fix so that project agent & location removals get saved

kb/add-usage-guide
Trent Larson 8 months ago
parent
commit
2b8f9579f1
  1. 4
      src/views/NewEditProjectView.vue

4
src/views/NewEditProjectView.vue

@ -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 = {

Loading…
Cancel
Save