refac
This commit is contained in:
1 parent
653562d660
commit
b4738d1a2e
1 file changed
+5
@@ -778,6 +778,11 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
const setProviderDownloadConnections = async () => {
|
const setProviderDownloadConnections = async () => {
|
||||||
|
if ($user?.role !== 'admin') {
|
||||||
|
providerDownloadConnections = [];
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const openaiConfig = await getOpenAIConfig(localStorage.token).catch(() => null);
|
const openaiConfig = await getOpenAIConfig(localStorage.token).catch(() => null);
|
||||||
providerDownloadConnections =
|
providerDownloadConnections =
|
||||||
openaiConfig?.ENABLE_OPENAI_API
|
openaiConfig?.ENABLE_OPENAI_API
|
||||||
|
|||||||
Reference in new issue
Block a user