Fix gotcha when defining new provider views
UI should show the key if label is missing
This commit is contained in:
parent
8f4b223125
commit
9d5adf7793
|
@ -284,7 +284,7 @@ class PoserViewView(PoserMasterView):
|
|||
for topkey, topgroup in six.iteritems(view_settings):
|
||||
for key in list(topgroup):
|
||||
settings = topgroup[key]
|
||||
settings = [(key, setting['label'])
|
||||
settings = [(key, setting.get('label', key))
|
||||
for key, setting in six.iteritems(settings)]
|
||||
settings.sort(key=lambda itm: itm[1])
|
||||
topgroup[key] = settings
|
||||
|
|
Loading…
Reference in a new issue