fix: url type

This commit is contained in:
Beng Eu committed 2022-02-18 15:41:17 +08:00
1 parent f1170d261f
commit dcb028071b
1 file changed
+1 -1
+1 -1
View File
@@ -82,7 +82,7 @@ const DocView: FC<any> = observer(({}) => {
const { data: jsonSchema, error: jsonSchemaError } = useSWR(
() => swaggerUrl,
(url) => get(url, { headers, credentials: 'omit' }).then((res) => res)
(url: string) => get(url, { headers, credentials: 'omit' }).then((res) => res)
)
useEffect(() => {