fix erroneus filter, do not allow edit the online place

This commit is contained in:
sedum 2023-05-05 07:01:50 +02:00
parent 4584924175
commit c91b7f42cb

View file

@ -129,7 +129,8 @@ export default {
},
async fetch() {
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: {
...mapState(['settings']),