1
0
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:
Christopher Kolstad 2021-10-11 15:11:13 +02:00
parent 805c8e75df
commit 55c9c9a2e0

View File

@ -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;