Pārlūkot izejas kodu

hotfix: ts check

lloydzhou 1 gadu atpakaļ
vecāks
revīzija
8f14de5108
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      app/store/sd.ts

+ 2 - 2
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()) {