File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
angular/projects/angular-sdk Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 6
6
" vitest/globals" ,
7
7
" node"
8
8
],
9
+ "baseUrl" : " ../" ,
9
10
"paths" : {
10
11
"angular" : [
11
12
" ./dist/angular"
12
- ]
13
+ ],
14
+ "@openfeature/core" : [ " ../../shared/src" ],
15
+ "@openfeature/web-sdk" : [ " ../../web/src" ]
13
16
},
14
17
"esModuleInterop" : true ,
15
- "emitDecoratorMetadata" : true
18
+ "emitDecoratorMetadata" : true ,
19
+ "noImplicitOverride" : false ,
20
+ "noPropertyAccessFromIndexSignature" : false ,
21
+ "strict" : false
16
22
},
17
23
"include" : [
18
24
" src/**/*.spec.ts" ,
Original file line number Diff line number Diff line change @@ -393,7 +393,7 @@ export class OpenFeatureAPI
393
393
const maybePromise = wrapper . provider . onContextChange ( oldContext , newContext ) ;
394
394
395
395
// only reconcile if the onContextChange method returns a promise
396
- if ( typeof maybePromise ?. then === 'function' ) {
396
+ if ( maybePromise && typeof maybePromise ?. then === 'function' ) {
397
397
wrapper . incrementPendingContextChanges ( ) ;
398
398
wrapper . status = this . _statusEnumType . RECONCILING ;
399
399
this . getAssociatedEventEmitters ( domain ) . forEach ( ( emitter ) => {
You can’t perform that action at this time.
0 commit comments