update to raise NOT_FOUND error when no resource found

This commit is contained in:
Brandon Egger
2023-08-29 10:30:18 -05:00
parent f180fb8fd1
commit 8895fc31b4
3 changed files with 33 additions and 15 deletions

View File

@ -18,6 +18,8 @@ export function QueryWaitWrapper<TData, TError>({
return <LoadingBarChart width={200} height={200} />;
}
console.log(query.data);
if (!query.data || query.isError) {
return (
<div className="my-10 sm:my-16 md:my-28">