From 0fd20d934563d1f6f1da01c60b669d46759b24de Mon Sep 17 00:00:00 2001 From: Chris Mullins Date: Sun, 12 Apr 2020 17:44:03 -0700 Subject: [PATCH] Fix broken UI page due to API refactoring --- web/src/templates/TemplatesIndex.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/templates/TemplatesIndex.jsx b/web/src/templates/TemplatesIndex.jsx index eaa2491..99857c6 100644 --- a/web/src/templates/TemplatesIndex.jsx +++ b/web/src/templates/TemplatesIndex.jsx @@ -73,7 +73,7 @@ export default props => { const [activeTemplate, setActiveTemplate] = useState(null); const triggerReload = useCallback(() => { - api.get("/templates").then(x => setTemplates(x.data)); + api.get("/templates").then(x => setTemplates(x.data.templates)); globalActions.loadSettings({forceReload: true}).then(settings => { setActiveTemplate(settings["display.template_name"]); });