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

Close #91: Cannot add pubmed id in the condensateDetailPage

parent c52a85df
No related branches found
No related tags found
No related merge requests found
......@@ -641,9 +641,11 @@ export default {
pubmedData = data[key];
}
}
for (let item of pubmedData) {
if (this.pubmedId === item) {
foundPubId = item;
if(pubmedData) {
for (let item of pubmedData) {
if (this.pubmedId === item) {
foundPubId = item;
}
}
}
} else if (this.mode === 'protein' && this.actionType === 'Add' && Object.keys(data).length > 0) {
......@@ -665,7 +667,7 @@ export default {
this.isValid = false;
this.commentError = '';
this.error =
'Given pubmed id is aready present. Please add another pubmed id.';
'Given pubmed id is already present. Please add another pubmed id.';
return false;
}
......
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