fix: do not raise variable in property with force_optional
This commit is contained in:
parent
7ee65b6cab
commit
cc086f086a
1 changed files with 3 additions and 1 deletions
|
|
@ -589,7 +589,9 @@ class VariablePropertyCalculation(_VariableCalculation):
|
|||
identifier,
|
||||
needs_multi=False,
|
||||
)
|
||||
if params[None] and "variable" in params[None][0]:
|
||||
if objectspace.force_optional and (not params[None] or "variable" not in params[None][0]):
|
||||
params = {None: [None, None, False]}
|
||||
else:
|
||||
variable = params[None][0]["variable"]
|
||||
if self.when is not undefined:
|
||||
if self.version == "1.0":
|
||||
|
|
|
|||
Loading…
Reference in a new issue