Skip to content

Commit 8163dc1

Browse files
committed
fix: htmlData with empty selector
1 parent b96023a commit 8163dc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/js/layouts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ document.addEventListener('alpine:init', () => {
4040
}, {}, {
4141
afterResponse: function(data) {
4242
const tempContainer = document.createElement('div');
43-
tempContainer.innerHTML = data.htmlData[0].html ?? '';
43+
tempContainer.innerHTML = data.html ?? data.htmlData[0].html ?? '';
4444

4545
while (tempContainer.firstChild) {
4646
t.blocksContainer.appendChild(tempContainer.firstChild);

0 commit comments

Comments
 (0)