Skip to content

Commit

Permalink
use lodash deep equals for course duplicate checking
Browse files Browse the repository at this point in the history
  • Loading branch information
ejcheng committed Feb 4, 2025
1 parent 35344fa commit 8ecda56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ScheduleGenerate/ScheduleGenerateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export default defineComponent({
const secondScheduleEntries = Array.from(first.schedule.entries());
return firstScheduleEntries.every(([firstKey, firstValue], index) => {
const [secondKey, secondValue] = secondScheduleEntries[index];
return firstKey === secondKey && _.isEqual(firstValue, secondValue);
return _.isEqual(firstKey, secondKey) && _.isEqual(firstValue, secondValue);
});
}
Expand Down

0 comments on commit 8ecda56

Please sign in to comment.