Skip to content

Commit

Permalink
fix: if events
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Oct 6, 2024
1 parent 975008a commit afaf496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const CoCreateEvents = {
}
});

if (events.includes('observer')) {
if (events && events.includes('observer')) {
observer.init({
name: 'observerAttributes',
observe: ['attributes'],
Expand Down

0 comments on commit afaf496

Please sign in to comment.