From 240227c073df38c2fd18b356a18d8602b627af61 Mon Sep 17 00:00:00 2001 From: Drew Slobodnjak <60050885+drew08t@users.noreply.github.com> Date: Wed, 2 Apr 2025 13:58:59 -0700 Subject: [PATCH] Table: Footer field selection fix (#103303) --- public/app/plugins/panel/table/module.tsx | 2 +- public/app/plugins/panel/table/table-new/module.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/plugins/panel/table/module.tsx b/public/app/plugins/panel/table/module.tsx index 0d6466426da..cdfbf7499c1 100644 --- a/public/app/plugins/panel/table/module.tsx +++ b/public/app/plugins/panel/table/module.tsx @@ -175,7 +175,7 @@ export const plugin = new PanelPlugin(TablePanel) }, }, defaultValue: '', - showIf: (cfg) => cfg.footer?.show && !cfg.footer?.countRows, + showIf: (cfg) => cfg.footer?.show && !(cfg.footer?.countRows && cfg.footer?.reducer.includes(ReducerID.count)), }) .addCustomEditor({ id: 'footer.enablePagination', diff --git a/public/app/plugins/panel/table/table-new/module.tsx b/public/app/plugins/panel/table/table-new/module.tsx index 0d6466426da..cdfbf7499c1 100644 --- a/public/app/plugins/panel/table/table-new/module.tsx +++ b/public/app/plugins/panel/table/table-new/module.tsx @@ -175,7 +175,7 @@ export const plugin = new PanelPlugin(TablePanel) }, }, defaultValue: '', - showIf: (cfg) => cfg.footer?.show && !cfg.footer?.countRows, + showIf: (cfg) => cfg.footer?.show && !(cfg.footer?.countRows && cfg.footer?.reducer.includes(ReducerID.count)), }) .addCustomEditor({ id: 'footer.enablePagination',