Skip to content

Commit 37674f8

Browse files
committed
feat: Update AppStatusModal and AppStatusModalTabList to enhance tab selection logic and deployment status handling
1 parent a61697e commit 37674f8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Shared/Components/AppStatusModal/AppStatusModal.component.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ const AppStatusModal = ({
106106
getDeploymentStatusWrapper,
107107
[appId, envId, showDeploymentStatusModal, selectedTab],
108108
!!showDeploymentStatusModal,
109+
{ resetOnChange: false },
109110
)
110111

111112
const handleAppDetailsExternalSync = async () => {

src/Shared/Components/AppStatusModal/AppStatusModalTabList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const AppStatusModalTabList = ({
7676

7777
// Could have achieved via onDataLoad but, have done this through useEffect to avoid abrupt shift in case some tabs went missing after polling
7878
useEffect(() => {
79-
if (tabGroups.length) {
79+
if (tabGroups.length && !selectedTab) {
8080
handleSelectTab(tabGroups[0]?.id as AppStatusModalTabType)
8181
}
8282
}, [])

0 commit comments

Comments
 (0)