fix ウィジェットが選択されていないときは追加されないように ()

* fix 

* null削除の取り消し

* 空白文字の調整
This commit is contained in:
Oni-Men 2019-07-28 14:12:33 +09:00 committed by syuilo
parent 076ac3b614
commit 333604898c
2 changed files with 4 additions and 0 deletions
src/client/app
desktop/views/home
mobile/views/pages

View file

@ -224,6 +224,8 @@ export default Vue.extend({
},
addWidget() {
if(this.widgetAdderSelected == null) return;
this.$store.commit('addHomeWidget', {
name: this.widgetAdderSelected,
id: uuid(),

View file

@ -122,6 +122,8 @@ export default Vue.extend({
},
addWidget() {
if(this.widgetAdderSelected == null) return;
this.$store.commit('addMobileHomeWidget', {
name: this.widgetAdderSelected,
id: uuid(),