mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-06 14:13:06 -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:
|
except Exception as e:
|
||||||
current_app.logger.exception(e)
|
current_app.logger.exception(e)
|
||||||
return self.default
|
return self.default
|
||||||
return res.value
|
|
||||||
|
|
||||||
def _get_format_data(self, res):
|
def _get_format_data(self, res):
|
||||||
"""
|
"""
|
||||||
@ -149,10 +148,11 @@ class _Preference():
|
|||||||
if 'value' in opt and opt['value'] == res.value:
|
if 'value' in opt and opt['value'] == res.value:
|
||||||
return True, 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
|
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, res.value
|
||||||
return True, self.default
|
return True, self.default
|
||||||
if self._type == 'select':
|
if self._type == 'select':
|
||||||
|
Loading…
Reference in New Issue
Block a user