Skip to content

Commit

Permalink
revert teams logic code
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsobrmlr committed Jan 10, 2023
1 parent 383fdbf commit e1fe6d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/storybook-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Set commit message
id: commit-message
run: echo "msg='Storybook build '$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
run: echo "msg=Storybook build for $(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Commit update
uses: stefanzweifel/git-auto-commit-action@v4
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/scenes/teamLogic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ export const teamLogic = kea<teamLogicType>([
deleteTeamSuccess: () => {
lemonToast.success('Project has been deleted')
},
createTeamSuccess: ({ currentTeam }) => {
if (window.location.href.includes('/ingestion') && currentTeam.is_demo) {
window.location.href = '/'
} else {
window.location.href = '/ingestion'
}
},
})),
events(({ actions }) => ({
afterMount: () => {
Expand Down

0 comments on commit e1fe6d7

Please sign in to comment.