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:
@@ -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})
|
||||
});
|
||||
|
Reference in New Issue
Block a user