From 663392c4e8abf16078e2b1bac83c419c33afb97b Mon Sep 17 00:00:00 2001 From: Michael Matloka Date: Thu, 16 Nov 2023 21:22:34 +0100 Subject: [PATCH] Fix more circular imports --- frontend/src/lib/introductions/groupsAccessLogic.ts | 4 ++-- frontend/src/models/groupsModel.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/lib/introductions/groupsAccessLogic.ts b/frontend/src/lib/introductions/groupsAccessLogic.ts index 37bcb2e97972c..960c3af6d8e88 100644 --- a/frontend/src/lib/introductions/groupsAccessLogic.ts +++ b/frontend/src/lib/introductions/groupsAccessLogic.ts @@ -16,9 +16,9 @@ export enum GroupsAccessStatus { export const groupsAccessLogic = kea([ path(['lib', 'introductions', 'groupsAccessLogic']), - connect({ + connect(() => ({ values: [teamLogic, ['currentTeam'], preflightLogic, ['preflight'], userLogic, ['hasAvailableFeature']], - }), + })), selectors({ groupsEnabled: [ (s) => [s.hasAvailableFeature], diff --git a/frontend/src/models/groupsModel.ts b/frontend/src/models/groupsModel.ts index eb8babc316dc2..69ff703fcc042 100644 --- a/frontend/src/models/groupsModel.ts +++ b/frontend/src/models/groupsModel.ts @@ -17,9 +17,9 @@ export interface Noun { export const groupsModel = kea([ path(['models', 'groupsModel']), - connect({ + connect(() => ({ values: [teamLogic, ['currentTeamId'], groupsAccessLogic, ['groupsEnabled', 'groupsAccessStatus']], - }), + })), loaders(({ values }) => ({ groupTypesRaw: [ [] as Array,