From eb12a115268671ad324aa437d91c170e5843f4bb Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 12 Jan 2025 18:56:56 -0400 Subject: cacheable-object: remove 900,000 functions --- src/util/search-spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/util/search-spec.js') 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 : []); -- cgit 1.3.0-6-gf8a5