From c91b7f42cb07b77d475cd79ef8615935251a979d Mon Sep 17 00:00:00 2001 From: sedum Date: Fri, 5 May 2023 07:01:50 +0200 Subject: [PATCH] fix erroneus filter, do not allow edit the online place --- components/admin/Places.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/admin/Places.vue b/components/admin/Places.vue index 7ec8e189..94172cd4 100644 --- a/components/admin/Places.vue +++ b/components/admin/Places.vue @@ -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']),