diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-01-12 18:56:56 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-01-13 16:43:08 -0400 |
commit | eb12a115268671ad324aa437d91c170e5843f4bb (patch) | |
tree | f3f103e90362f4b5b8c01f15e1b66ad8275cee5a /src/util/search-spec.js | |
parent | 8e5e35be0411246cbbc2b2bdc4a93ca6b36b1337 (diff) |
cacheable-object: remove 900,000 functions
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 : []); |