Skip to content

Commit

Permalink
Fix broken UI page due to API refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
sidoh committed Apr 13, 2020
1 parent 59695b7 commit 0fd20d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/templates/TemplatesIndex.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"]);
});
Expand Down

0 comments on commit 0fd20d9

Please sign in to comment.