Skip to content

Commit

Permalink
make it possible to access loop item in the states
Browse files Browse the repository at this point in the history
  • Loading branch information
lexoyo committed Apr 3, 2024
1 parent 0c4b4dd commit 077eee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/publication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ function renderComponent(config: ClientConfig, component: Component, toHtml: ()
const states = statesPublic
.map(({ stateId, tokens }) => assignBlock(stateId, component, tokens))
.join('\n')
const before = (states ?? '') + (forStart ?? '') + (ifStart ?? '')
const before = (forStart ?? '') + (states ?? '') + (ifStart ?? '')
const after = (ifEnd ?? '') + (forEnd ?? '')

// Attributes
Expand Down

0 comments on commit 077eee4

Please sign in to comment.