Skip to content

Commit

Permalink
feat: update seafile-js version
Browse files Browse the repository at this point in the history
  • Loading branch information
YangGuoXuan-0503 committed Nov 22, 2023
1 parent dbe9e0a commit 95769aa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
14 changes: 7 additions & 7 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"react-select": "5.7.0",
"react-transition-group": "4.4.5",
"reactstrap": "8.9.0",
"seafile-js": "0.2.217",
"seafile-js": "0.2.218",
"socket.io-client": "^2.2.0",
"svg-sprite-loader": "^6.0.11",
"svgo-loader": "^3.0.1",
Expand Down
7 changes: 4 additions & 3 deletions frontend/src/pages/sdoc/sdoc-file-history/side-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,16 @@ class SidePanel extends Component {
const newHistoryGroups = oldHistoryGroups.slice(0);
histories.forEach(history => {
const { date } = history;
const month = moment(date).format('YYYY-MM');
const momentDate = moment(date);
const month = momentDate.format('YYYY-MM');
const monthItem = newHistoryGroups.find(item => item.month === month);
if (monthItem) {
monthItem.children.push({ day: moment(date).format('YYYY-MM-DD'), showDaily: false, children: [ history ] });
monthItem.children.push({ day: momentDate.format('YYYY-MM-DD'), showDaily: false, children: [ history ] });
} else {
newHistoryGroups.push({
month,
children: [
{ day: moment(date).format('YYYY-MM-DD'), showDaily: false, children: [ history ] }
{ day: momentDate.format('YYYY-MM-DD'), showDaily: false, children: [ history ] }
]
});
}
Expand Down

0 comments on commit 95769aa

Please sign in to comment.