mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08: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:
parent
a21dbdc45b
commit
93c26dac28
|
@ -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]});
|
||||
|
|
Loading…
Reference in a new issue