Prevent saving environment roles as empty strings

This commit is contained in:
Montana
2018-09-25 08:36:50 -04:00
parent e1767488c7
commit 8fd1d93f2e
4 changed files with 3 additions and 7 deletions

View File

@@ -249,7 +249,8 @@ def update_member(workspace_id, member_id):
if re.match("env_", entry):
env_id = entry[4:]
env_role = form_dict[entry]
ids_and_roles.append({"id": env_id, "role": env_role})
if env_role:
ids_and_roles.append({"id": env_id, "role": env_role})
form = EditMemberForm(http_request.form)