diff --git a/source/front/blocks/events-list/edit.js b/source/front/blocks/events-list/edit.js index 85c01a2..c5d9020 100644 --- a/source/front/blocks/events-list/edit.js +++ b/source/front/blocks/events-list/edit.js @@ -41,7 +41,8 @@ export default ({ attributes, setAttributes }) => { } fetch(url) .then((response) => response.text()) // TODO also handle response.ok being false - .then((events) => { + .then((data) => { + const events = JSON.parse(data) displayEvents({ events, document, container }) }) .catch((data) => {