diff --git a/src/components/Element/DetailsPanel.vue b/src/components/Element/DetailsPanel.vue
index 612d5dc1a3299b2de879edcd828fcda67cee4e43..5f5ed288cbba5525f07545cc41c0824faf5797be 100644
--- a/src/components/Element/DetailsPanel.vue
+++ b/src/components/Element/DetailsPanel.vue
@@ -173,7 +173,7 @@ export default {
           mlClass: this.selectedNewClassification
         })
       } finally {
-        this.$refs.newClassificationSelect.clear()
+        this.$refs.newClassificationSelect?.clear()
         this.isSavingNewClassification = false
       }
     }