1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-06-05 21:59:25 +02:00

parse events

This commit is contained in:
Daniel Waxweiler
2024-04-02 23:30:56 +02:00
parent 48fa50ab85
commit 2889edcb4c

View File

@ -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) => {