mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-11 00:08:30 +01:00
fix: Ensure Object.keys always gets an object
This commit is contained in:
parent
805c8e75df
commit
55c9c9a2e0
@ -178,8 +178,8 @@ const FeatureStrategiesEnvironments = () => {
|
||||
|
||||
// Check groupId
|
||||
|
||||
const cacheParamKeys = Object.keys(cachedStrategy?.parameters);
|
||||
const strategyParamKeys = Object.keys(strategy?.parameters);
|
||||
const cacheParamKeys = Object.keys(cachedStrategy?.parameters || {});
|
||||
const strategyParamKeys = Object.keys(strategy?.parameters || {});
|
||||
// Check length of parameters
|
||||
if (cacheParamKeys.length !== strategyParamKeys.length) {
|
||||
equal = false;
|
||||
|
Loading…
Reference in New Issue
Block a user