From 13f037d617a7b2304c78757afbd0a8869645d7df Mon Sep 17 00:00:00 2001 From: Kyle Cunningham Date: Mon, 4 Mar 2024 14:17:20 -0600 Subject: [PATCH] Table Panel: Fix condition for showing footer options (#83801) * Fix condition for showing footer options * codeincarnate/table-footer-config/ lint --------- Co-authored-by: jev forsberg --- public/app/plugins/panel/table/module.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/public/app/plugins/panel/table/module.tsx b/public/app/plugins/panel/table/module.tsx index 5b626dc69fe..f930e45de19 100644 --- a/public/app/plugins/panel/table/module.tsx +++ b/public/app/plugins/panel/table/module.tsx @@ -169,9 +169,7 @@ export const plugin = new PanelPlugin(TablePanel) }, }, defaultValue: '', - showIf: (cfg) => - (cfg.footer?.show && !cfg.footer?.countRows) || - (cfg.footer?.reducer?.length === 1 && cfg.footer?.reducer[0] !== ReducerID.count), + showIf: (cfg) => cfg.footer?.show && !cfg.footer?.countRows, }) .addCustomEditor({ id: 'footer.enablePagination',