1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-01-08 15:06:08 +02:00

check for propertyValue not null (#2986)

This commit is contained in:
Scott Bishel 2022-05-02 14:48:45 -06:00 committed by GitHub
parent cff702462a
commit b12638a57a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -271,7 +271,7 @@ function searchFilterCards(cards: Card[], board: Board, searchTextRaw: string):
for (const [propertyId, propertyValue] of Object.entries(card.fields.properties)) {
// TODO: Refactor to a shared function that returns the display value of a property
const propertyTemplate = board.cardProperties.find((o) => o.id === propertyId)
if (propertyTemplate) {
if (propertyTemplate && propertyValue) {
if (propertyTemplate.type === 'select') {
// Look up the value of the select option
const option = propertyTemplate.options.find((o) => o.id === propertyValue)