Skip to content

Commit

Permalink
fix: returns nothing for query fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinfe123 committed Jun 17, 2024
1 parent 17e51e5 commit e97817d
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions ui/src/routes/query.lazy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,7 @@ function Query() {
queryFn: () => fetchQuery(code),
});
const grid = !data ? (
error ? (
<div>
{/* We can have stacktrace displayed here based on the response from backend */}
<p className="text-destructive">
No such resource returned from this query :({" "}
</p>
</div>
) : (
<Skeleton className="w-full h-[300px]" />
)
!error && <Skeleton className="w-full h-[300px]" />
) : (
<DataGrid
columns={data.columns.map((col) => ({ key: col, name: col }))}
Expand Down

0 comments on commit e97817d

Please sign in to comment.