Skip to content

Commit 1173ef0

Browse files
committed
fix: DeploymentHistoryConfigDiffCompare - Sort Order resetting on page refresh
1 parent a22372b commit 1173ef0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiffCompare.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ export const DeploymentHistoryConfigDiffCompare = ({
7070
// Set fullscreen for comparing deployment history config
7171
setFullScreenView(true)
7272
// Set default initial sorting
73-
handleSorting(DEPLOYMENT_CONFIG_DIFF_SORT_KEY)
73+
if (sortBy !== DEPLOYMENT_CONFIG_DIFF_SORT_KEY) {
74+
handleSorting(DEPLOYMENT_CONFIG_DIFF_SORT_KEY)
75+
}
7476

7577
return () => {
7678
setConvertVariables(false)

0 commit comments

Comments
 (0)