Explorar o código

add await to async function

Yuki Takei hai 3 meses
pai
achega
2ec3a8171b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/remark-attachment-refs/src/client/stores/refs.tsx

+ 1 - 1
packages/remark-attachment-refs/src/client/stores/refs.tsx

@@ -48,7 +48,7 @@ export const useSWRxRefs = (
       isImmutable,
     ],
     async ([endpoint, pagePath, prefix]) => {
-      return axios
+      return await axios
         .get(endpoint, {
           params: {
             pagePath,