Skip to content

Commit

Permalink
fix: remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
berntpopp committed Apr 11, 2024
1 parent bb73bc0 commit 20043fd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/CurationForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
}
Expand Down
1 change: 1 addition & 0 deletions src/components/CurationModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion src/stores/curationsStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 20043fd

Please sign in to comment.