From 9d5adf7793dffaa24d72b60b3acf667c828363ab Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 7 Mar 2022 17:40:48 -0600 Subject: [PATCH] Fix gotcha when defining new provider views UI should show the key if label is missing --- tailbone/views/poser/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/views/poser/views.py b/tailbone/views/poser/views.py index a7ace23e..e69d51d3 100644 --- a/tailbone/views/poser/views.py +++ b/tailbone/views/poser/views.py @@ -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