1
0
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:
Ranjiwei
2024-07-19 12:27:39 +08:00
committed by GitHub
parent 67780dd73d
commit 8dc731b21a
6 changed files with 130 additions and 112 deletions

View File

@@ -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);