Skip to content

Commit

Permalink
Minor fix - Description Nav dropdown properties order
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Aug 16, 2024
1 parent 8ce9eb3 commit 1a5c437
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/essence/Ancillary/Description.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,15 @@ const Description = {
}
})

properties.sort()
let propIndex = properties.indexOf(Description.navPopoverField)
if (propIndex === -1) {
Description.navPopoverField = NAV_DEFAULT_FIELD
propIndex = 0
}

$('#mainDescNavPopoverFieldField').html(
Dropy.construct(properties.sort(), 'Field to Sort By', propIndex)
Dropy.construct(properties, 'Field to Sort By', propIndex)
)
Dropy.init($('#mainDescNavPopoverFieldField'), function (idx, val) {
Description.navPopoverField = val
Expand Down

0 comments on commit 1a5c437

Please sign in to comment.