Skip to content
Snippets Groups Projects
Commit c52a85df authored by moon's avatar moon
Browse files

Close #91: Cannot add pubmed id in the condensateDetailPage

parent febd2299
No related branches found
No related tags found
No related merge requests found
......@@ -632,7 +632,8 @@ export default {
},
inputValidation(data) {
let foundPubId;
if (this.mode === 'condensate' && this.type === 'Add') {
if (this.mode === 'condensate' && this.type === 'Add' && Object.keys(data).length > 0) {
let pubmedData;
for (let key in data) {
if (key === this.uniprot) {
......@@ -645,7 +646,7 @@ export default {
foundPubId = item;
}
}
} else if (this.mode === 'protein' && this.actionType === 'Add') {
} else if (this.mode === 'protein' && this.actionType === 'Add' && Object.keys(data).length > 0) {
foundPubId = data.pubmed_ids.find((p) => p === this.pubmedId);
}
this.message = '';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment