fix erroneus filter, do not allow edit the online place
This commit is contained in:
@@ -129,7 +129,8 @@ export default {
|
|||||||
},
|
},
|
||||||
async fetch() {
|
async fetch() {
|
||||||
this.places = await this.$axios.$get('/places')
|
this.places = await this.$axios.$get('/places')
|
||||||
this.places.splice(this.places.findIndex((p) => p.name === 'online' ), 1)
|
// do not allow edit the online place
|
||||||
|
this.places = this.places.filter(p => p.name !== 'online')
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['settings']),
|
...mapState(['settings']),
|
||||||
|
|||||||
Reference in New Issue
Block a user