check if selectables is None
This commit is contained in:
parent
c096123430
commit
c3bb07bc93
@ -127,6 +127,7 @@ class Variable:
|
|||||||
value = self.eval()
|
value = self.eval()
|
||||||
|
|
||||||
if self.type == VariableType.SELECT_SINGLE:
|
if self.type == VariableType.SELECT_SINGLE:
|
||||||
|
if isinstance(self._selectables, list):
|
||||||
for selectable in self.selectables:
|
for selectable in self.selectables:
|
||||||
if selectable.key == value:
|
if selectable.key == value:
|
||||||
return str(selectable.label)
|
return str(selectable.label)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user