Skip to content

Commit

Permalink
fix org public links
Browse files Browse the repository at this point in the history
  • Loading branch information
孙永强 committed Jun 7, 2024
1 parent 98687c6 commit 558736b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/pages/org-admin/org-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class OrgLinks extends React.Component {
}

listOrgLinks = (page) => {
seafileAPI.orgAdminListOrgLinks(this.state.page).then(res => {
seafileAPI.orgAdminListOrgLinks(page).then(res => {
const data = res.data;
this.setState({
linkList: data.link_list,
Expand Down
1 change: 1 addition & 0 deletions seahub/organizations/api/admin/links.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def get(self, request):
link['name'] = os.path.dirname(l.path)

link_list.append(link)
link_list = sorted(link_list, key=lambda x: x['created_time'], reverse=True)

return Response({
'link_list': link_list,
Expand Down

0 comments on commit 558736b

Please sign in to comment.