diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2017-02-06 20:06:05 -0600 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-02-06 20:06:05 -0600 |
commit | ba98f5809ccc01506d52d5b5a83d591c6697a8c3 (patch) | |
tree | 0f41850713961aa0f6009ef01c1b45a12d25564c /app/assets/javascripts/droplab/droplab_ajax.js | |
parent | 96baf2bc4f0f6177badd61e59f5a0434dd12f7ac (diff) | |
download | gitlab-ce-ba98f5809ccc01506d52d5b5a83d591c6697a8c3.tar.gz |
Fix droplab rendering template when data-dynamic selector is unavailablefix-droplab-rendering
Diffstat (limited to 'app/assets/javascripts/droplab/droplab_ajax.js')
-rw-r--r-- | app/assets/javascripts/droplab/droplab_ajax.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/droplab/droplab_ajax.js b/app/assets/javascripts/droplab/droplab_ajax.js index c290e1a8355..5cdf11c6a2c 100644 --- a/app/assets/javascripts/droplab/droplab_ajax.js +++ b/app/assets/javascripts/droplab/droplab_ajax.js @@ -78,8 +78,8 @@ require('../window')(function(w){ }, destroy: function() { - if (this.listTemplate) { - var dynamicList = this.hook.list.list.querySelector('[data-dynamic]'); + var dynamicList = this.hook.list.list.querySelector('[data-dynamic]'); + if (this.listTemplate && dynamicList) { dynamicList.outerHTML = this.listTemplate; } } |