Skip to content

Commit

Permalink
fix: renaming method from beforeCallbask to afterResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
DissNik committed Oct 30, 2024
1 parent b9c928a commit 61673fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/js/layouts.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ document.addEventListener('alpine:init', () => {
name: name,
counts: layoutsCount
}, {}, {
beforeCallback: function(data) {
afterResponse: function(data) {
const tempContainer = document.createElement('div');
tempContainer.innerHTML = data.html ?? '';

while (tempContainer.firstChild) {
t.blocksContainer.appendChild(tempContainer.firstChild);
}

t._reindex()
}
})
Expand Down

0 comments on commit 61673fa

Please sign in to comment.