Skip to content

Commit

Permalink
fix #15
Browse files Browse the repository at this point in the history
  • Loading branch information
weber-s committed Aug 31, 2023
1 parent 943f29b commit 7ba9514
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dalec/static/dalec/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
function dalec_fetch_content(container){
const data = container.dataset ;
container.classList.add("dalec-loading");
if (data.channelObjects !== undefined){
data.channelObjects = JSON.parse(data.channelObjects)
}
fetch(
data.url,
{
Expand All @@ -13,7 +16,7 @@ function dalec_fetch_content(container){
},
// cache: "no-cache",
body: JSON.stringify(
{"channelObjects": JSON.parse(data.channelObjects), "orderedBy": data.orderedBy}
{"channelObjects": data.channelObjects, "orderedBy": data.orderedBy}
),
keepalive: true,
}
Expand Down

0 comments on commit 7ba9514

Please sign in to comment.