Skip to content

Commit

Permalink
Fix the error occurring while loading preferences on startup. #8256
Browse files Browse the repository at this point in the history
  • Loading branch information
yogeshmahajan-1903 authored Jan 2, 2025
1 parent 5dc5244 commit d03553b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/pgadmin/utils/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ def get(self):
except Exception as e:
current_app.logger.exception(e)
return self.default
return res.value

def _get_format_data(self, res):
"""
Expand All @@ -149,10 +148,11 @@ def _get_format_data(self, res):
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':
Expand Down

0 comments on commit d03553b

Please sign in to comment.