Handler and Validator should not allow selecting the empty options. Fixes #6810

pull/61/head
Akshay Joshi 2021-09-28 11:34:45 +05:30
parent d616cb88aa
commit 2265ffc0a7
1 changed files with 2 additions and 2 deletions

View File

@ -862,7 +862,7 @@ class ForeignDataWrapperView(PGChildNodeView, SchemaDiffObjectCompare):
sid: Server ID
did: Database ID
"""
res = [{'label': '', 'value': ''}]
res = []
try:
sql = render_template("/".join([self.template_path,
'validators.sql']),
@ -892,7 +892,7 @@ class ForeignDataWrapperView(PGChildNodeView, SchemaDiffObjectCompare):
sid: Server ID
did: Database ID
"""
res = [{'label': '', 'value': ''}]
res = []
try:
sql = render_template("/".join([self.template_path,
'handlers.sql']),