From 80940ae4f513315e9e019ee403a43f9b0e6f322a Mon Sep 17 00:00:00 2001 From: ogerly Date: Fri, 9 Sep 2022 13:06:46 +0200 Subject: [PATCH] fix lint --- webapp/components/Group/GroupForm.vue | 5 ++++- webapp/constants/groups.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/webapp/components/Group/GroupForm.vue b/webapp/components/Group/GroupForm.vue index dac2a6b72..495667d1a 100644 --- a/webapp/components/Group/GroupForm.vue +++ b/webapp/components/Group/GroupForm.vue @@ -111,7 +111,10 @@ export default { type: 'array', required: this.categoriesActive, validator: (_, value = []) => { - if (this.categoriesActive && (value.length < CATEGORIES_MIN || value.length > CATEGORIES_MAX)) { + if ( + this.categoriesActive && + (value.length < CATEGORIES_MIN || value.length > CATEGORIES_MAX) + ) { return [new Error(this.$t('common.validations.categories'))] } return [] diff --git a/webapp/constants/groups.js b/webapp/constants/groups.js index d3eeb03cf..3abf0d12a 100644 --- a/webapp/constants/groups.js +++ b/webapp/constants/groups.js @@ -1,4 +1,4 @@ // this file is duplicated in `backend/src/constants/group.js` and `webapp/constants/group.js` export const NAME_LENGTH_MIN = 3 -export const NAME_LENGTH_MAX = 50 +export const NAME_LENGTH_MAX = 50 export const DESCRIPTION_WITHOUT_HTML_LENGTH_MIN = 100 // with removed HTML tags