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

* fix #5214

* null削除の取り消し

* 空白文字の調整
This commit is contained in:
Oni-Men 2019-07-28 14:12:33 +09:00 committed by syuilo
parent 2f4de72c22
commit 430d53bbb8
2 changed files with 4 additions and 0 deletions

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(),