This commit is contained in:
Adria Navarro 2025-01-14 10:09:10 +01:00
parent ca1015baf6
commit 41c8ab976f
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ export default function (url: string) {
async function get() {
store.update(u => ({ ...u, status: "LOADING" }))
try {
const data = await API.get<any>({ url })
const data = await API.get<object>({ url })
store.set({ data, status: "SUCCESS" })
} catch (e) {
store.set({ data: {}, error: e, status: "ERROR" })