File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ describe('Vue', () => {
119
119
120
120
const Parent = defineComponent ( ( ) => {
121
121
const contextVal = inject ( ContextKey )
122
- appSubscription = contextVal && contextVal . subscription
122
+ appSubscription = contextVal ? contextVal . subscription : null
123
123
const count = useNormalSelector ( ( s ) => s . count )
124
124
return ( ) => ( count . value === 1 ? < Child /> : null )
125
125
} )
@@ -151,7 +151,7 @@ describe('Vue', () => {
151
151
152
152
const Parent = defineComponent ( ( ) => {
153
153
const contextVal = inject ( ContextKey )
154
- appSubscription = contextVal && contextVal . subscription
154
+ appSubscription = contextVal ? contextVal . subscription : null
155
155
const count = useNormalSelector ( ( s ) => s . count )
156
156
return ( ) => ( count . value === 0 ? < Child /> : null )
157
157
} )
You can’t perform that action at this time.
0 commit comments