Skip to content

Commit

Permalink
Fix list editor summary formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoshino committed Jul 3, 2024
1 parent 3ad7b9f commit bb137a4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@
item.title ||
item.name ||
// Use the first string-type field value, if available
Object.values(item).find((value) => typeof value === 'string' && !!value) ||
(typeof item === 'string'
? item
: Object.values(item).find((value) => typeof value === 'string' && !!value)) ||
''
);
}
Expand Down

0 comments on commit bb137a4

Please sign in to comment.