Skip to content

Commit 0d290e5

Browse files
Merge pull request #2053 from devtron-labs/feat/argo-cluster-select
chore: remove all cluster call from argo apps listing
2 parents 460415a + 7673be6 commit 0d290e5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/components/app/list-new/GenericAppList.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ const GenericAppList = ({
141141
}, [appsList])
142142

143143
const handleArgoAppListing = () => {
144+
if (!clusterIdsCsv) return
144145
setDataStateType(AppListViewType.LOADING)
145146
getArgoInstalledExternalApps(clusterIdsCsv)
146147
.then((appsListResponse) => {
@@ -173,11 +174,7 @@ const GenericAppList = ({
173174

174175
// reset data
175176
function init() {
176-
if (isSSE && !payloadParsedFromUrl?.namespaces?.length) {
177-
setDataStateType(AppListViewType.LIST)
178-
} else {
179-
setDataStateType(AppListViewType.LOADING)
180-
}
177+
setDataStateType(AppListViewType.LIST)
181178
setClusterIdsCsv(_getClusterIdsFromRequestUrl() ?? null)
182179
setAppsList([])
183180
setFilteredAppsList([])

0 commit comments

Comments
 (0)