mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 15:38:15 +00:00
Drop wiki2 tables (#6373)
* wiki2-drop-wiki-tables * Update models.py * update * Update wiki2.py
This commit is contained in:
@@ -30,7 +30,7 @@ class WikiCardView extends Component {
|
||||
if (!canPublishRepo || !isPro) return;
|
||||
let departmentMap = {};
|
||||
wikiAPI.listWikiDepartments().then(res => {
|
||||
res.data.forEach(item => departmentMap[item.id] = true);
|
||||
res.data.forEach(item => departmentMap[item.email] = true);
|
||||
this.setState({ departmentMap });
|
||||
}).catch(error => {
|
||||
let errMessage = Utils.getErrorMsg(error);
|
||||
|
Reference in New Issue
Block a user