@tempots/dom 7.1.1 → 7.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/OneOf.js +1 -1
- package/components/Repeat.js +1 -1
- package/package.json +1 -1
package/components/OneOf.js
CHANGED
|
@@ -58,7 +58,7 @@ export function OneOfLiteral(props) {
|
|
|
58
58
|
}
|
|
59
59
|
export function OneOfUnion(props) {
|
|
60
60
|
const { match, using, ...cases } = props;
|
|
61
|
-
return new OneOfImpl(match.map(t => ({ [t[using]]: t })), cases);
|
|
61
|
+
return new OneOfImpl(match.map(t => ({ [t != null ? t[using] : '']: t })), cases);
|
|
62
62
|
}
|
|
63
63
|
export function OneOfUnionType(props) {
|
|
64
64
|
return OneOfUnion({ ...props, using: 'type' });
|
package/components/Repeat.js
CHANGED
|
@@ -101,7 +101,7 @@ export class RepeatImpl {
|
|
|
101
101
|
index: i
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
-
for (let i = clears.length; i < newCount; i++) {
|
|
104
|
+
for (let i = clears.length - 1; i < newCount; i++) {
|
|
105
105
|
positions[i] = new Prop(makePosition(i, count));
|
|
106
106
|
clears[i] = makeRenderable(this.children(positions[i])).appendTo(newCtx);
|
|
107
107
|
if (i < newCount - 1) {
|