From e97817dee0eadf7dcb147865fe648c361f55b85d Mon Sep 17 00:00:00 2001 From: Kinfe123 Date: Mon, 17 Jun 2024 20:29:52 +0300 Subject: [PATCH] fix: returns nothing for query fails --- ui/src/routes/query.lazy.tsx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/ui/src/routes/query.lazy.tsx b/ui/src/routes/query.lazy.tsx index a4f7bd1..278b2b6 100644 --- a/ui/src/routes/query.lazy.tsx +++ b/ui/src/routes/query.lazy.tsx @@ -21,16 +21,7 @@ function Query() { queryFn: () => fetchQuery(code), }); const grid = !data ? ( - error ? ( -
- {/* We can have stacktrace displayed here based on the response from backend */} -

- No such resource returned from this query :({" "} -

-
- ) : ( - - ) + !error && ) : ( ({ key: col, name: col }))}