mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-05 05:50:19 +08:00
disable demo prompt for get-organizations API
This commit is contained in:
@ -51,7 +51,9 @@ window.fetch = async(url, option = {}) => {
|
|||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
originalFetch(url, option).then(res => {
|
originalFetch(url, option).then(res => {
|
||||||
responseFilters.forEach(filter => filter(res.clone()));
|
if (!url.startsWith("/api/get-organizations")) {
|
||||||
|
responseFilters.forEach(filter => filter(res.clone()));
|
||||||
|
}
|
||||||
resolve(res);
|
resolve(res);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user