Skip to content

Commit 69a68f4

Browse files
committed
chore: add early return
1 parent b3a2e40 commit 69a68f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/app/details/appDetails/AppDetails.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -876,9 +876,10 @@ const AppDetail = ({ detailsType, filteredResourceIds }: AppDetailProps) => {
876876
if (envList.length && selectedEnvId && selectedEnvId !== +params.envId) {
877877
const newUrl = getAppDetailsURL(params.appId, selectedEnvId)
878878
replace(newUrl)
879-
} else {
880-
setEnvironmentId(null)
879+
return
881880
}
881+
setEnvironmentId(null)
882+
return
882883
}
883884

884885
const selectedAppId =

0 commit comments

Comments
 (0)