added fixes: warning
some files likely wont be needed and wer added by ai to fix things that were no longer needed !!!
This commit is contained in:
parent
8e1650653b
commit
93c977d1f5
5 changed files with 288 additions and 38 deletions
|
|
@ -33,6 +33,16 @@ document.addEventListener('livewire:init', () => {
|
|||
}
|
||||
}
|
||||
});
|
||||
|
||||
Livewire.on('featured-image-added', (data) => {
|
||||
console.log('Received featured-image-added event:', data);
|
||||
const payload = Array.isArray(data) ? data[0] : data;
|
||||
|
||||
// Reload the page to show the updated featured image
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
}, 500);
|
||||
});
|
||||
});
|
||||
|
||||
console.log('Testing if app.js is still running');
|
||||
Loading…
Add table
Add a link
Reference in a new issue