fix(tags): incorrect max and min primary tags used

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
Sami Mazouz 2023-03-11 09:05:12 +01:00
parent b66fe5dd5f
commit abc9670659
No known key found for this signature in database

View File

@ -27,11 +27,11 @@ export default class TagDiscussionModal extends TagSelectionModal<TagDiscussionM
attrs.limits = {
allowBypassing: attrs.allowResetting,
max: {
primary: app.forum.attribute<number>('minPrimaryTags'),
primary: app.forum.attribute<number>('maxPrimaryTags'),
secondary: app.forum.attribute<number>('maxSecondaryTags'),
},
min: {
primary: app.forum.attribute<number>('maxPrimaryTags'),
primary: app.forum.attribute<number>('minPrimaryTags'),
secondary: app.forum.attribute<number>('minSecondaryTags'),
},
};