Skip to content

Commit a9f2ccc

Browse files
ibaiwaych3yne
andauthored
[#2754] improvement(web): list metalakes sort by created time as default (#2764)
<!-- 1. Title: [#<issue>] <type>(<scope>): <subject> Examples: - "[#123] feat(operator): support xxx" - "[#233] fix: check null before access result in xxx" - "[MINOR] refactor: fix typo in variable name" - "[MINOR] docs: fix typo in README" - "[#255] test: fix flaky test NameOfTheTest" Reference: https://www.conventionalcommits.org/en/v1.0.0/ 2. If the PR is unfinished, please mark this PR as draft. --> ### What changes were proposed in this pull request? When listing metalakes they get sorted by their createdTime value ### Why are the changes needed? Its requested in the issue Fix: #2754 (issue) ### Does this PR introduce _any_ user-facing change? metalakes will be shown in ASC order ### How was this patch tested? N/A --------- Co-authored-by: CHEYNE <contact@ch3yne.com>
1 parent 2bfefb9 commit a9f2ccc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

web/src/lib/store/metalakes/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ export const fetchMetalakes = createAsyncThunk('appMetalakes/fetchMetalakes', as
3838

3939
const { metalakes } = res
4040

41+
metalakes.sort((a, b) => new Date(b.audit.createTime) - new Date(a.audit.createTime))
42+
4143
return { metalakes }
4244
})
4345

0 commit comments

Comments
 (0)