diff --git a/src/client/components/user-preview.vue b/src/client/components/user-preview.vue index edaa54e8b..7637f700d 100644 --- a/src/client/components/user-preview.vue +++ b/src/client/components/user-preview.vue @@ -84,7 +84,7 @@ export default Vue.extend({ methods: { close() { this.show = false; - (this.$refs.content as any).style.pointerEvents = 'none'; + if (this.$refs.content) (this.$refs.content as any).style.pointerEvents = 'none'; } } });