From 2b8f9579f1f4c39c508510de285de1990041e0fb Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sat, 23 Mar 2024 02:31:44 -0600 Subject: [PATCH] fix so that project agent & location removals get saved --- src/views/NewEditProjectView.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/NewEditProjectView.vue b/src/views/NewEditProjectView.vue index cceaaafb2..cab2b8756 100644 --- a/src/views/NewEditProjectView.vue +++ b/src/views/NewEditProjectView.vue @@ -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 = {