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

This commit is contained in:
Akshay Joshi 2021-09-28 11:34:45 +05:30
parent d616cb88aa
commit 2265ffc0a7

View File

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