diff --git a/static/js/app/index.js b/static/js/app/index.js index c4713b2..a5c9584 100644 --- a/static/js/app/index.js +++ b/static/js/app/index.js @@ -23,7 +23,7 @@ window.addEventListener('DOMContentLoaded', function (){ el: '#app', data: { activeIndex: 0, - configure: {} + configure: { projects: [] } }, events: { 'save-configure': function (){ @@ -36,6 +36,7 @@ window.addEventListener('DOMContentLoaded', function (){ switch (command) { case 'refresh': app.activeIndex = 0; + configure.projects = configure.projects || []; app.configure = configure; break; } diff --git a/static/js/components/app-configure/index.js b/static/js/components/app-configure/index.js index 8714abc..107d8f3 100644 --- a/static/js/components/app-configure/index.js +++ b/static/js/components/app-configure/index.js @@ -31,7 +31,7 @@ module.exports = Vue.component('app-configure', { uniqueCache: function (){ var cache = {}; - this.configure.projects && this.configure.projects.forEach(function (project){ + this.configure.projects.forEach(function (project){ cache[project.name] = true; });