Skip to content

Commit

Permalink
Make sure divider fields are left-most (#10627)
Browse files Browse the repository at this point in the history
* Make sure divider fields are left most

* Refactor
  • Loading branch information
melohagan committed Jun 9, 2023
1 parent b2ed3e3 commit 085920d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/bbui/src/Table/Table.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,12 @@
})
return columns
.sort((a, b) => {
if (a.divider) {
return a
}
if (b.divider) {
return b
}
const orderA = a.order || Number.MAX_SAFE_INTEGER
const orderB = b.order || Number.MAX_SAFE_INTEGER
const nameA = getDisplayName(a)
Expand Down

0 comments on commit 085920d

Please sign in to comment.