disable demo prompt for get-organizations API

This commit is contained in:
Gucheng Wang
2023-02-25 11:01:48 +08:00
parent f5a05ac534
commit 8fbd5b1a74

View File

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