We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 668fd65 commit 4016394Copy full SHA for 4016394
src/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.tsx
@@ -46,11 +46,7 @@ export const HeaderWithCreateButton = ({ headerName }: HeaderWithCreateButtonPro
46
}
47
48
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}`
+ const _urlPrefix = `${URLS.APP}/${URLS.APP_LIST}/${params.appType ?? AppListConstants.AppType.DEVTRON_APPS}`
54
history.push(`${_urlPrefix}/${AppListConstants.CREATE_DEVTRON_APP_URL}${location.search}`)
55
56
0 commit comments