diff options
Diffstat (limited to 'app/assets/javascripts/vue_merge_request_widget/components/extensions/container.js')
-rw-r--r-- | app/assets/javascripts/vue_merge_request_widget/components/extensions/container.js | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/app/assets/javascripts/vue_merge_request_widget/components/extensions/container.js b/app/assets/javascripts/vue_merge_request_widget/components/extensions/container.js index a58d524b9ed..cc7b9d0ea72 100644 --- a/app/assets/javascripts/vue_merge_request_widget/components/extensions/container.js +++ b/app/assets/javascripts/vue_merge_request_widget/components/extensions/container.js @@ -11,8 +11,6 @@ export default { render(h) { const { extensions } = registeredExtensions; - if (extensions.length === 0) return null; - return h( 'section', { @@ -22,26 +20,28 @@ export default { }, }, [ - h( - 'ul', - { - class: 'gl-p-0 gl-m-0 gl-list-style-none', - }, - [ - ...extensions.map((extension, index) => - h('li', { attrs: { class: index > 0 && 'mr-widget-border-top' } }, [ - h( - { ...extension }, - { - props: { - mr: this.mr, + h('div', { attrs: { class: 'mr-widget-section' } }, [ + h( + 'ul', + { + class: 'gl-p-0 gl-m-0 gl-list-style-none', + }, + [ + ...extensions.map((extension, index) => + h('li', { attrs: { class: index > 0 && 'mr-widget-border-top' } }, [ + h( + { ...extension }, + { + props: { + mr: this.mr, + }, }, - }, - ), - ]), - ), - ], - ), + ), + ]), + ), + ], + ), + ]), ], ); }, |