misc: ignore empty block field when looking for prefilled value (#47804)
This commit is contained in:
parent
c844b914e4
commit
6c89c0b8e6
|
@ -339,7 +339,7 @@ class FormPage(Directory, FormTemplateMixin):
|
|||
try:
|
||||
current_value = data[block.id]['data'][0][field.id]
|
||||
has_current_value = True
|
||||
except (IndexError, KeyError, ValueError):
|
||||
except (IndexError, KeyError, TypeError, ValueError):
|
||||
pass
|
||||
else:
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue