Fix "Construct Rules" dialog placeholder row

On initial render, the placeholder row in the joins variable has only
2 items instead of the needed 3, causing rendering to fail.

Change-Id: I01da6bd2b9d9ee78ee4cab5f706e0f5da5b2f020
Closes-bug: 1820129
This commit is contained in:
Eric K 2019-03-14 14:46:04 -07:00
parent f402ba1ce9
commit 8921e24401
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ class CreateConditions(workflows.Step):
aliases.append((value, alias_name))
# Make sure there's at least one empty row.
context['joins'] = joins or [('', '')]
context['joins'] = joins or [('', '', '')]
context['joins_count'] = len(joins) or 1
context['negations'] = negations or [('', '')]
context['negations_count'] = len(negations) or 1