Explorar el Código

add await to async function

Yuki Takei hace 3 meses
padre
commit
2ec3a8171b
Se han modificado 1 ficheros con 1 adiciones y 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,