From 972179a3fd3118ca95dfe32d0c03bc49ff9606fd Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Mon, 21 Oct 2024 14:11:35 +0200 Subject: [PATCH] fix: rejig remote data --- frontend/src/component/personalDashboard/RemoteData.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/component/personalDashboard/RemoteData.ts b/frontend/src/component/personalDashboard/RemoteData.ts index 1f79b0c778b5..19edc74dfd5d 100644 --- a/frontend/src/component/personalDashboard/RemoteData.ts +++ b/frontend/src/component/personalDashboard/RemoteData.ts @@ -1,11 +1,10 @@ import type { IPersonalDashboardProjectDetailsOutput } from 'hooks/api/getters/usePersonalDashboard/usePersonalDashboardProjectDetails'; import type { PersonalDashboardProjectDetailsSchema } from 'openapi'; -type RemoteData = { refetch: () => void } & ( +export type RemoteData = | { state: 'error'; error: Error } | { state: 'loading' } - | { state: 'success'; data: T } -); + | { state: 'success'; data: T }; export const fromPersonalDashboardProjectDetailsOutput = ({ personalDashboardProjectDetails,