1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-09-16 08:56:19 +02:00

Fixing sorting on non-titled cards (#2582)

This commit is contained in:
Jesús Espino
2022-03-23 09:50:21 +01:00
committed by GitHub
parent 28b0dc8c08
commit e22ce0c7e0

View File

@@ -186,10 +186,6 @@ function sortCards(cards: Card[], board: Board, activeView: BoardView, usersById
Utils.log(`Sort by property: ${template?.name}`)
sortedCards = sortedCards.sort((a, b) => {
// Always put cards with no titles at the bottom, regardless of sort
if (!a.title || !b.title) {
return titleOrCreatedOrder(a, b)
}
let aValue = a.fields.properties[sortPropertyId] || ''
let bValue = b.fields.properties[sortPropertyId] || ''