From 8f14de51087438639dd491c843deb18576ad50da Mon Sep 17 00:00:00 2001 From: lloydzhou Date: Thu, 25 Jul 2024 12:34:35 +0800 Subject: [PATCH] hotfix: ts check --- app/store/sd.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/store/sd.ts b/app/store/sd.ts index 1bbc9d6089c..87e2c7f86fc 100644 --- a/app/store/sd.ts +++ b/app/store/sd.ts @@ -64,10 +64,10 @@ export const useSdStore = createPersistStore< }, stabilityRequestCall(data: any) { const accessStore = useAccessStore.getState(); - let prefix = ApiPath.Stability; + let prefix: string = ApiPath.Stability as string; let bearerToken = ""; if (accessStore.useCustomConfig) { - prefix = accessStore.stabilityUrl || ApiPath.Stability; + prefix = accessStore.stabilityUrl || (ApiPath.Stability as string); bearerToken = getBearerToken(accessStore.stabilityApiKey); } if (!bearerToken && accessStore.enabledAccessControl()) {