diff --git a/openflexure_microscope/api/static/src/components/fieldComponents/keyvalList.vue b/openflexure_microscope/api/static/src/components/fieldComponents/keyvalList.vue index 4d7743a4..32a82f64 100644 --- a/openflexure_microscope/api/static/src/components/fieldComponents/keyvalList.vue +++ b/openflexure_microscope/api/static/src/components/fieldComponents/keyvalList.vue @@ -98,7 +98,9 @@ export default { this.$emit("input", newSelected); // Move focus back to key textbox - this.$refs.textboxKey.focus(); + if (this.$refs.textboxKey) { + this.$refs.textboxKey.focus(); + } }, delMetadataKey: function(key) {