From 20043fd92aa713900a566727093bf96a4161e71d Mon Sep 17 00:00:00 2001 From: Bernt Popp Date: Thu, 11 Apr 2024 21:33:17 +0200 Subject: [PATCH] fix: remove console.log --- src/components/CurationForm.vue | 6 +++--- src/components/CurationModal.vue | 1 + src/stores/curationsStore.js | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/CurationForm.vue b/src/components/CurationForm.vue index cfe05b2..95ce9be 100644 --- a/src/components/CurationForm.vue +++ b/src/components/CurationForm.vue @@ -255,9 +255,9 @@ export default { } }); - // Add precuration data as nested object using docId as key - if (this.precurationDetails && this.precurationDetails.docId) { - const precurationDocId = this.precurationDetails.docId; + // Add precuration data as nested object using document id as key + if (this.precurationDetails && this.precurationDetails.id) { + const precurationDocId = this.precurationDetails.id; // Creating a nested object with docId as key data['precurationDetails'] = { [precurationDocId]: this.precurationDetails }; } diff --git a/src/components/CurationModal.vue b/src/components/CurationModal.vue index dc8b1a8..78abae0 100644 --- a/src/components/CurationModal.vue +++ b/src/components/CurationModal.vue @@ -141,6 +141,7 @@ export default { try { const existingCuration = await getPrecurationByHGNCIdOrSymbol(editedItem.value.hgnc_id || editedItem.value.approved_symbol); if (existingCuration) { + precurationDetails.value = existingCuration; showCurationTab.value = true; tab.value = 1; // Open Curation tab if curation exists } else { diff --git a/src/stores/curationsStore.js b/src/stores/curationsStore.js index c6352d6..a01d2c9 100644 --- a/src/stores/curationsStore.js +++ b/src/stores/curationsStore.js @@ -32,7 +32,6 @@ export const getCurations = async () => { */ const validateCurationData = (curationData, config) => { const errors = []; - console.log(curationData); for (const [key, field] of Object.entries(config)) { const value = curationData[key];