mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
fix lint
This commit is contained in:
parent
a1da04ec05
commit
80940ae4f5
@ -111,7 +111,10 @@ export default {
|
|||||||
type: 'array',
|
type: 'array',
|
||||||
required: this.categoriesActive,
|
required: this.categoriesActive,
|
||||||
validator: (_, value = []) => {
|
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 [new Error(this.$t('common.validations.categories'))]
|
||||||
}
|
}
|
||||||
return []
|
return []
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
// this file is duplicated in `backend/src/constants/group.js` and `webapp/constants/group.js`
|
// 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_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
|
export const DESCRIPTION_WITHOUT_HTML_LENGTH_MIN = 100 // with removed HTML tags
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user