Skip to content

Commit 25a3197

Browse files
committed
Fix import
1 parent 796b13d commit 25a3197

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

web/hooks/use-api-getter.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { useEffect } from 'react'
1+
import {useEffect} from 'react'
22

3-
import { APIParams, APIPath, APIResponse } from 'common/api/schema'
4-
import { usePersistentInMemoryState } from './use-persistent-in-memory-state'
5-
import { APIError, api } from 'web/lib/api'
6-
import { useEvent } from './use-event'
3+
import {APIParams, APIPath, APIResponse} from 'common/api/schema'
4+
import {usePersistentInMemoryState} from './use-persistent-in-memory-state'
5+
import {api} from 'web/lib/api'
6+
import {useEvent} from './use-event'
7+
import {APIError} from "common/api/utils";
78

89
const promiseCache: Record<string, Promise<any> | undefined> = {}
910

@@ -45,7 +46,7 @@ export const useAPIGetter = <P extends APIPath>(
4546
refresh()
4647
}, [propsStringToTriggerRefresh])
4748

48-
return { data, error, refresh }
49+
return {data, error, refresh}
4950
}
5051

5152
function deepCopyWithoutKeys(obj: any, keysToRemove: string[]): any {

0 commit comments

Comments
 (0)