diff --git a/app/javascript/vue/components/action_toolbar.vue b/app/javascript/vue/components/action_toolbar.vue index d8e32038a..110d97a2d 100644 --- a/app/javascript/vue/components/action_toolbar.vue +++ b/app/javascript/vue/components/action_toolbar.vue @@ -92,7 +92,10 @@ this.buttonOverflow = false; this.$nextTick(() => { - if (!this.$el.getBoundingClientRect) return; + if ( + !(this.$el.getBoundingClientRect && + document.querySelector('.sn-action-toolbar__action:last-child')) + ) return; let containerRect = this.$el.getBoundingClientRect(); let lastActionRect = document.querySelector('.sn-action-toolbar__action:last-child').getBoundingClientRect();