mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
fix(editor): Fix feature flag check when PH is unavailable (#3944)
🐛 Fix feature flag check when PH is unavailable
This commit is contained in:
@@ -40,6 +40,7 @@ interface posthog {
|
||||
callback?: Function,
|
||||
): unknown;
|
||||
};
|
||||
getFeatureFlag?: (flagName: string) => boolean;
|
||||
}
|
||||
|
||||
export interface IUserNodesPanelSession {
|
||||
|
||||
@@ -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]});
|
||||
|
||||
Reference in New Issue
Block a user