mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
fix erroneus filter, do not allow edit the online place
This commit is contained in:
parent
4584924175
commit
c91b7f42cb
1 changed files with 2 additions and 1 deletions
|
@ -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']),
|
||||
|
|
Loading…
Reference in a new issue