Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
calebporzio committed May 10, 2023
1 parent 9ad43f1 commit 8e35eef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/alpinejs/src/directives/x-for.js
Expand Up @@ -158,9 +158,8 @@ function loop(el, iteratorNames, evaluateItems, evaluateKey) {
let marker = document.createElement('div')

mutateDom(() => {
if (!elForSpot) {
throw new Error("AlpineJS x-for Error: ':key' is undefined or invalid. Please ensure you're providing a valid key attribute.");
}
if (! elForSpot) warn(`x-for ":key" is undefined or invalid`, templateEl)

elForSpot.after(marker)
elInSpot.after(elForSpot)
elForSpot._x_currentIfEl && elForSpot.after(elForSpot._x_currentIfEl)
Expand Down

0 comments on commit 8e35eef

Please sign in to comment.