1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-07 09:51:26 +00:00

unStarItem -> unstarItem (#3181)

This commit is contained in:
lian
2019-03-27 11:28:00 +08:00
committed by Daniel Pan
parent 4a9cfe8a46
commit 99b4ba8cd6
7 changed files with 9 additions and 9 deletions

View File

@@ -62,9 +62,9 @@ class EditorUtilities {
);
}
unStarItem () {
unstarItem () {
return (
seafileAPI.unStarItem(this.repoID, this.filePath)
seafileAPI.unstarItem(this.repoID, this.filePath)
);
}
@@ -650,7 +650,7 @@ class MarkdownEditor extends React.Component {
toggleStar = () => {
let starrd = this.state.fileInfo.starred;
if (starrd) {
editorUtilities.unStarItem().then((response) => {
editorUtilities.unstarItem().then((response) => {
this.setState({
fileInfo: Object.assign({}, this.state.fileInfo, {starred: !starrd})
});