Skip to content

Commit 3b0c85f

Browse files
authored
Merge pull request #549 from devtron-labs/fix/config-diff-sorting
fix: DeploymentHistoryConfigDiffCompare - Sort Order resetting on page refresh
2 parents a22372b + 8fdb4ad commit 3b0c85f

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "1.6.0",
3+
"version": "1.6.0-patch-1",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

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)