mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-19 07:55:25 +02:00
fix!: Fix QueryResult.tsx to allow "null" as a query data
This commit is contained in:
parent
8a2de63b6a
commit
646a646eb0
@ -17,7 +17,7 @@ export default function QueryResult<TQueryFnData, TError = AxiosError>({
|
||||
query,
|
||||
children: render,
|
||||
}: QueryResultProps<TQueryFnData, TError>): ReactElement {
|
||||
if (query.data) {
|
||||
if (query.data !== undefined) {
|
||||
return render(query.data)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user