summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/boards/components/modal/lists_dropdown.js.es6
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/boards/components/modal/lists_dropdown.js.es6')
-rw-r--r--app/assets/javascripts/boards/components/modal/lists_dropdown.js.es65
1 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/boards/components/modal/lists_dropdown.js.es6 b/app/assets/javascripts/boards/components/modal/lists_dropdown.js.es6
index 96f12da3753..3c05120a2da 100644
--- a/app/assets/javascripts/boards/components/modal/lists_dropdown.js.es6
+++ b/app/assets/javascripts/boards/components/modal/lists_dropdown.js.es6
@@ -11,9 +11,12 @@
},
computed: {
selected() {
- return this.modal.selectedList;
+ return this.modal.selectedList || this.state.lists[0];
},
},
+ destroyed() {
+ this.modal.selectedList = null;
+ },
template: `
<div class="dropdown inline">
<button