Skip to content

Commit 600429e

Browse files
authored
Merge pull request #317 from devtron-labs/fix/create-app-redirect
fix: redirection on create app modal close
2 parents 87d15ad + 14717d5 commit 600429e

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "0.3.10",
3+
"version": "0.3.11",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,7 @@ export const HeaderWithCreateButton = ({ headerName }: HeaderWithCreateButtonPro
4646
}
4747

4848
const openCreateDevtronAppModel = () => {
49-
const canOpenModalWithDevtronApps = params.appType
50-
? params.appType === AppListConstants.AppType.DEVTRON_APPS
51-
: serverMode === SERVER_MODE.FULL
52-
const _appType = canOpenModalWithDevtronApps ? AppListConstants.AppType.DEVTRON_APPS : URLS.APP_LIST_HELM
53-
const _urlPrefix = `${URLS.APP}/${URLS.APP_LIST}/${_appType}`
49+
const _urlPrefix = `${URLS.APP}/${URLS.APP_LIST}/${params.appType ?? AppListConstants.AppType.DEVTRON_APPS}`
5450
history.push(`${_urlPrefix}/${AppListConstants.CREATE_DEVTRON_APP_URL}${location.search}`)
5551
}
5652

0 commit comments

Comments
 (0)