diff --git a/app/javascript/vue/repository_print_modal/container.vue b/app/javascript/vue/repository_print_modal/container.vue index 80415230d..d4dd1b892 100644 --- a/app/javascript/vue/repository_print_modal/container.vue +++ b/app/javascript/vue/repository_print_modal/container.vue @@ -130,12 +130,11 @@ }) $(this.$refs.modal).on('hidden.bs.modal', () => { + if (this.zebraEnabled) { + this.zebraPrinters = null; + } this.$emit('close'); }); - - if (this.zebraEnabled) { - this.initZebraPrinter(); - } }, computed: { availableTemplates() { @@ -167,6 +166,9 @@ watch: { showModal() { if (this.showModal) { + if (this.zebraEnabled) { + this.initZebraPrinter(); + } $(this.$refs.modal).modal('show'); this.validateTemplate(); }