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:
parent
cff702462a
commit
b12638a57a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user