From 0e3c7eaf266f802ace371f2525d60357dd04871b Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Tue, 24 Oct 2023 13:15:17 +0200 Subject: [PATCH] Fix issue with text value rendering [SCI-9583] --- .../repository_values/RepositoryTextValue.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryTextValue.vue b/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryTextValue.vue index 8c63fb785..f370c2e5a 100644 --- a/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryTextValue.vue +++ b/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryTextValue.vue @@ -46,8 +46,10 @@ export default { }, mounted() { this.$nextTick(() => { - const textHeight = this.$refs.textRef.scrollHeight - this.expandable = textHeight > 60 // 60px + if (this.$refs.textRef) { + const textHeight = this.$refs.textRef.scrollHeight + this.expandable = textHeight > 60 // 60px + } }) }, }