Skip to content

Commit

Permalink
feat: dont show stat if it is empty in query
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Apr 27, 2024
1 parent 60fa2c2 commit acbe642
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gui/src/components/tabs/query-tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import OptimizeTableState from "../table-optimized/OptimizeTableState";
import { MultipleQueryProgress, multipleQuery } from "@gui/lib/multiple-query";
import { DatabaseResultStat } from "@gui/driver";
import ResultStats from "../result-stat";
import isEmptyResultStats from "@gui/lib/empty-stats";

export default function QueryWindow() {
const { schema } = useAutoComplete();
Expand Down Expand Up @@ -126,7 +127,7 @@ export default function QueryWindow() {
<div className="grow overflow-hidden">
<ResultTable data={data} />
</div>
{stats && (
{stats && !isEmptyResultStats(stats) && (
<div className="shrink-0">
<Separator />
<ResultStats stats={stats} />
Expand Down

0 comments on commit acbe642

Please sign in to comment.