mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-24 13:15:40 +00:00
updated validations
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user