updated validations

This commit is contained in:
lohxt1
2025-07-15 19:10:19 +05:30
parent 9c3314ce47
commit 5c47e1f405
3 changed files with 3 additions and 3 deletions

View File

@@ -242,7 +242,7 @@ export const sortByNameThenSequence = items => {
// Check if there's already an item with the same sequence number
const hasItemWithSameSeq = Array.isArray(existingItem)
? existingItem[0].seq === item.seq
? existingItem?.[0]?.seq === item.seq
: existingItem?.seq === item.seq;
if (hasItemWithSameSeq) {

View File

@@ -533,7 +533,7 @@ const sortByNameThenSequence = items => {
// Check if there's already an item with the same sequence number
const hasItemWithSameSeq = Array.isArray(existingItem)
? existingItem[0].seq === item.seq
? existingItem?.[0]?.seq === item.seq
: existingItem?.seq === item.seq;
if (hasItemWithSameSeq) {

View File

@@ -489,7 +489,7 @@ const sortByNameThenSequence = items => {
// Check if there's already an item with the same sequence number
const hasItemWithSameSeq = Array.isArray(existingItem)
? existingItem[0].seq === item.seq
? existingItem?.[0]?.seq === item.seq
: existingItem?.seq === item.seq;
if (hasItemWithSameSeq) {