Skip to content

Commit

Permalink
Add check for compute in getUniquePropertyIndexValues
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneGudermann committed Nov 8, 2024
1 parent a0aa0a2 commit 925200a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/viur/core/bones/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,8 @@ def getUniquePropertyIndexValues(self, skel: 'viur.core.skeleton.SkeletonInstanc
:return: A list of strings representing the hashed values for the current bone value(s) in the skeleton.
If the bone has no value, an empty list is returned.
"""
if self.compute:
self.serialize_compute(skel, name)
val = skel[name]
if val is None:
return []
Expand Down

0 comments on commit 925200a

Please sign in to comment.