From 41c8ab976fd4c30661b4e75927c5bdbe4ec7a74e Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 14 Jan 2025 10:09:10 +0100 Subject: [PATCH] Type --- packages/builder/src/helpers/fetchData.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/helpers/fetchData.ts b/packages/builder/src/helpers/fetchData.ts index 22b82c070e..cffb8f4d7d 100644 --- a/packages/builder/src/helpers/fetchData.ts +++ b/packages/builder/src/helpers/fetchData.ts @@ -15,7 +15,7 @@ export default function (url: string) { async function get() { store.update(u => ({ ...u, status: "LOADING" })) try { - const data = await API.get({ url }) + const data = await API.get({ url }) store.set({ data, status: "SUCCESS" }) } catch (e) { store.set({ data: {}, error: e, status: "ERROR" })