check if selectables is None

This commit is contained in:
jr-k 2024-05-05 18:51:26 +02:00
parent c096123430
commit c3bb07bc93

View File

@ -127,6 +127,7 @@ class Variable:
value = self.eval()
if self.type == VariableType.SELECT_SINGLE:
if isinstance(self._selectables, list):
for selectable in self.selectables:
if selectable.key == value:
return str(selectable.label)