diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-04-15 19:49:09 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-04-15 19:49:09 -0300 |
commit | 6cbd0236a3c94cd29a0eb419f0eaa22e93b9f320 (patch) | |
tree | 5201d4a1bad4d941eed16b0070b4710bcf841f83 /src/data | |
parent | 15ef511cd7b1afed7a2b531a0f01ecc7d7bee781 (diff) |
make Group.category property actually work
Diffstat (limited to 'src/data')
-rw-r--r-- | src/data/things.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/things.js b/src/data/things.js index a4ee2e96..6ed0aa47 100644 --- a/src/data/things.js +++ b/src/data/things.js @@ -1020,7 +1020,7 @@ Group.propertyDescriptors = { expose: { dependencies: ['groupCategoryData'], compute: ({ groupCategoryData, [Group.instance]: group }) => ( - groupCategoryData?.filter(category => category.groups.includes(group)) ?? []) + groupCategoryData.find(category => category.groups.includes(group)) ?? null) } }, }; |