hotfix: ts check

This commit is contained in:
lloydzhou 2024-07-25 12:34:35 +08:00
parent 8f6e5d73a2
commit 8f14de5108
1 changed files with 2 additions and 2 deletions

View File

@ -64,10 +64,10 @@ export const useSdStore = createPersistStore<
}, },
stabilityRequestCall(data: any) { stabilityRequestCall(data: any) {
const accessStore = useAccessStore.getState(); const accessStore = useAccessStore.getState();
let prefix = ApiPath.Stability; let prefix: string = ApiPath.Stability as string;
let bearerToken = ""; let bearerToken = "";
if (accessStore.useCustomConfig) { if (accessStore.useCustomConfig) {
prefix = accessStore.stabilityUrl || ApiPath.Stability; prefix = accessStore.stabilityUrl || (ApiPath.Stability as string);
bearerToken = getBearerToken(accessStore.stabilityApiKey); bearerToken = getBearerToken(accessStore.stabilityApiKey);
} }
if (!bearerToken && accessStore.enabledAccessControl()) { if (!bearerToken && accessStore.enabledAccessControl()) {