Skip to content

Commit

Permalink
connect activeScene instead
Browse files Browse the repository at this point in the history
  • Loading branch information
raquelmsmith committed Oct 19, 2023
1 parent 4ba1800 commit a31978d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions frontend/src/layout/navigation/navigationLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type ProjectNoticeVariant =
export const navigationLogic = kea<navigationLogicType>({
path: ['layout', 'navigation', 'navigationLogic'],
connect: {
values: [sceneLogic, ['sceneConfig'], membersLogic, ['members', 'membersLoading']],
values: [sceneLogic, ['sceneConfig', 'activeScene'], membersLogic, ['members', 'membersLoading']],
actions: [eventUsageLogic, ['reportProjectNoticeDismissed']],
},
actions: {
Expand Down Expand Up @@ -124,9 +124,8 @@ export const navigationLogic = kea<navigationLogicType>({
(fullscreen, sceneConfig) => fullscreen || sceneConfig?.layout === 'plain',
],
minimalTopBar: [
(s) => [s.fullscreen, s.sceneConfig],
() => {
const activeScene = sceneLogic.values.activeScene
(s) => [s.activeScene],
(activeScene) => {
const minimalTopBarScenes = [Scene.Products, Scene.Onboarding]
return activeScene && minimalTopBarScenes.includes(activeScene)
},
Expand Down

0 comments on commit a31978d

Please sign in to comment.