diff options
Diffstat (limited to 'src/util/search-spec.js')
-rw-r--r-- | src/util/search-spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/search-spec.js b/src/util/search-spec.js index bc24e1a1..3d05c021 100644 --- a/src/util/search-spec.js +++ b/src/util/search-spec.js @@ -134,14 +134,14 @@ export const searchSpec = { thing.color; fields.artTags = - (Object.hasOwn(thing, 'artTags') + (thing.constructor.hasPropertyDescriptor('artTags') ? thing.artTags.map(artTag => artTag.nameShort) : []); fields.additionalNames = - (Object.hasOwn(thing, 'additionalNames') + (thing.constructor.hasPropertyDescriptor('additionalNames') ? thing.additionalNames.map(entry => entry.name) - : Object.hasOwn(thing, 'aliasNames') + : thing.constructor.hasPropertyDescriptor('aliasNames') ? thing.aliasNames : []); |