mirror of
https://github.com/usememos/memos.git
synced 2025-10-07 21:06:30 +08:00
fix: memo list default value (#390)
This commit is contained in:
parent
4246232fbe
commit
2a275b2875
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ func (s *Server) registerMemoRoutes(g *echo.Group) {
|
||||||
return unpinnedMemoList[i].DisplayTs > unpinnedMemoList[j].DisplayTs
|
return unpinnedMemoList[i].DisplayTs > unpinnedMemoList[j].DisplayTs
|
||||||
})
|
})
|
||||||
|
|
||||||
var memoList []*api.Memo
|
memoList := []*api.Memo{}
|
||||||
memoList = append(memoList, pinnedMemoList...)
|
memoList = append(memoList, pinnedMemoList...)
|
||||||
memoList = append(memoList, unpinnedMemoList...)
|
memoList = append(memoList, unpinnedMemoList...)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue