Skip to content

Commit 0db1d04

Browse files
committed
clumsily fix tests, these are bad styel anyway
1 parent 83eb524 commit 0db1d04

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/generated-patterns/integration/patterns/counter-conditional-branch.pattern.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212

1313
interface ConditionalBranchArgs {
1414
value: Default<number, 0>;
15-
enabled: Default<boolean, false>;
15+
enabled: Cell<Default<boolean, false>>;
1616
}
1717

1818
const toggleFlag = handler(

packages/generated-patterns/integration/patterns/counter-conditional-child-instantiation.pattern.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,11 @@ export const counterWithConditionalChildInstantiation = recipe<
102102
) => {
103103
const existing = childSlot.get();
104104
if (!state.active) {
105-
if (existing !== undefined) childSlot.set(undefined);
105+
if (existing !== undefined) {
106+
(childSlot as unknown as Cell<ChildCounterState | undefined>).set(
107+
undefined,
108+
);
109+
}
106110
return state.active;
107111
}
108112
if (existing === undefined) {

0 commit comments

Comments
 (0)