Skip to content

Commit

Permalink
Avoid TypeError in bussy queue
Browse files Browse the repository at this point in the history
  • Loading branch information
KamilBalwierz committed Dec 4, 2023
1 parent 8e0e45a commit 5851bc2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ $magewireScripts = $block->getViewModel();
}

let first = ! queue.some(({ parent }) => parent);
let me = queue.findIndex(item => item.component.id === component.id);
let me = queue.findIndex(item => item && item.component && item.component.id === component.id);

if (first) {
queue.push({
Expand Down

0 comments on commit 5851bc2

Please sign in to comment.