fixed bug after qa
@@ -482,7 +482,7 @@ export default Vue.extend({
this.rule.sections.forEach(
({entries}, sectionIndex: number ) => entries.map(
({0: category, 1: value}) => {
- const isDuplicate = entries.filter(({0: eCat, 1: eVal}) => eCat === category && eVal === value )?.length > 1
+ const isDuplicate = entries.filter(({0: eCat, 1: eVal}) => eCat === category && _.isEqual(eVal, value))?.length > 1
if ( isDuplicate && !this.isEntryDuplicate( sectionIndex, [category, value])) {
this.duplicatedEntries.push( [sectionIndex, category, value] )
}
@@ -507,7 +507,7 @@ export default Vue.extend({
isEntryDuplicate( sectionIndex: number, [currentCategory, currentValue]: TagRuleSectionEntry ) {
return this.duplicatedEntries.findIndex(
- ([section, category, value]) => section === sectionIndex && category === currentCategory && value === currentValue,
+ ([section, category, value]) => section === sectionIndex && category === currentCategory && _.isEqual(value, currentValue),
) > -1
},
