Skip to content

Commit

Permalink
fix(editor): Fix feature flag check when PH is unavailable (#3944)
Browse files Browse the repository at this point in the history
🐛 Fix feature flag check when PH is unavailable
  • Loading branch information
ivov authored Aug 25, 2022
1 parent a21dbdc commit 93c26da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ interface posthog {
callback?: Function,
): unknown;
};
getFeatureFlag?: (flagName: string) => boolean;
}

export interface IUserNodesPanelSession {
Expand Down
7 changes: 6 additions & 1 deletion packages/editor-ui/src/views/NodeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2051,7 +2051,12 @@ export default mixins(
this.setZoomLevel(1);
if (window.posthog && !window.featureFlag.isEnabled('show-welcome-note')) return;
if (
window.posthog && window.featureFlag && window.posthog.getFeatureFlag &&
!window.featureFlag.isEnabled('show-welcome-note')
) {
return;
}
setTimeout(() => {
this.$store.commit('setNodeViewOffsetPosition', {newOffset: [0, 0]});
Expand Down

0 comments on commit 93c26da

Please sign in to comment.