1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-11-24 08:22:29 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}
}