mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-05 17:53:12 +02:00
fix: flag resolver isEnabled for variant configs (#10607)
This commit is contained in:
parent
29133a9fc9
commit
0c1fc54d62
@ -49,7 +49,7 @@ export default class FlagResolver implements IFlagResolver {
|
||||
const exp = this.experiments[expName];
|
||||
if (exp) {
|
||||
if (typeof exp === 'boolean') return exp;
|
||||
else return exp.enabled;
|
||||
else if (exp.enabled) return exp.enabled;
|
||||
}
|
||||
return this.externalResolver.isEnabled(expName, context);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user