fix: Edit page crash when no template saved
This commit is contained in:
parent
c2d4a36da0
commit
d2b78ea6cf
2
main.py
2
main.py
@ -171,6 +171,8 @@ def edit():
|
|||||||
|
|
||||||
if 'template' in data:
|
if 'template' in data:
|
||||||
selected_template = data['template']
|
selected_template = data['template']
|
||||||
|
else:
|
||||||
|
selected_template = templates[0]
|
||||||
|
|
||||||
|
|
||||||
return render_template('edit.html',account=user['email'],account_link="account",account_link_name="Account",data=html,
|
return render_template('edit.html',account=user['email'],account_link="account",account_link_name="Account",data=html,
|
||||||
|
Loading…
Reference in New Issue
Block a user