mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +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,
|
callback?: Function,
|
||||||
): unknown;
|
): unknown;
|
||||||
};
|
};
|
||||||
|
getFeatureFlag?: (flagName: string) => boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IUserNodesPanelSession {
|
export interface IUserNodesPanelSession {
|
||||||
|
|||||||
@@ -2051,7 +2051,12 @@ export default mixins(
|
|||||||
|
|
||||||
this.setZoomLevel(1);
|
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(() => {
|
setTimeout(() => {
|
||||||
this.$store.commit('setNodeViewOffsetPosition', {newOffset: [0, 0]});
|
this.$store.commit('setNodeViewOffsetPosition', {newOffset: [0, 0]});
|
||||||
|
|||||||
Reference in New Issue
Block a user