diff --git a/web/src/components/CMS/addDeletePubmed.vue b/web/src/components/CMS/addDeletePubmed.vue
index 2334fbac81ab97bd315c80387e52d96297632d21..90e706887586832ce09e8fecf7bec3c6e62ec42b 100644
--- a/web/src/components/CMS/addDeletePubmed.vue
+++ b/web/src/components/CMS/addDeletePubmed.vue
@@ -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;
       }