mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-04 21:24:57 -06:00
Fix the error occurring while loading preferences on startup. #8256
This commit is contained in:
parent
5dc52446f3
commit
d03553be7a
@ -134,7 +134,6 @@ class _Preference():
|
||||
except Exception as e:
|
||||
current_app.logger.exception(e)
|
||||
return self.default
|
||||
return res.value
|
||||
|
||||
def _get_format_data(self, res):
|
||||
"""
|
||||
@ -149,10 +148,11 @@ class _Preference():
|
||||
if 'value' in opt and opt['value'] == res.value:
|
||||
return True, res.value
|
||||
|
||||
if self.control_props and self.control_props['creatable']:
|
||||
if self.control_props and 'creatable' in self.control_props and \
|
||||
self.control_props['creatable']:
|
||||
return True, res.value
|
||||
|
||||
if self.select and self.select['tags']:
|
||||
if self.select and 'tags' in self.select and self.select['tags']:
|
||||
return True, res.value
|
||||
return True, self.default
|
||||
if self._type == 'select':
|
||||
|
Loading…
Reference in New Issue
Block a user