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

don't check date fields for text search (#4419)

Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
Scott Bishel
2023-01-09 14:05:03 -07:00
committed by GitHub
parent 7ae2e62388
commit 9e0811f31f

View File

@@ -358,7 +358,7 @@ function searchFilterCards(cards: Card[], board: Board, searchTextRaw: string):
if (options?.includes(searchText)) {
return true
}
} else if ((propertyValue.toString()).toLowerCase().includes(searchText)) {
} else if (propertyTemplate.type !== 'date' && (propertyValue.toString()).toLowerCase().includes(searchText)) {
return true
}
}