0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00

fix: add null check to feature flags autorollback (#12656)

fix: add null checK
This commit is contained in:
Eric Duong 2022-11-07 14:33:39 -05:00 committed by GitHub
parent 05edc3a07c
commit 8cd440175a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -456,7 +456,7 @@ export const featureFlagLogic = kea<featureFlagLogicType>([
}
},
loadAllInsightsForFlag: () => {
values.featureFlag.rollback_conditions.forEach((condition, index) => {
values.featureFlag.rollback_conditions?.forEach((condition, index) => {
if (condition.threshold_metric) {
actions.loadInsightAtIndex(index, condition.threshold_metric)
}