GX2006: duplicate slot
A component call fills one slot two times.
Cause
A component call fills one slot two times.
Example
package card
props {
Header gx.Node = nil
Children gx.Node
}
<article>
<header>{p.Header}</header>
{p.Children}
</article>package card
<Card>
<:header>First</:header>
<:header>Second</:header>
Text
</Card>gx check reports:
ui/card/Page.gx:5:3: GX2006: slot "header" is given twice on <Card>Fix
- Remove one of the two slot tags.
- Or put the two parts in one slot tag.