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 <jev.forsberg@grafana.com>
This commit is contained in:
Kyle Cunningham
2024-03-05 03:17:20 +07:00
committed by GitHub
co-authored by jev forsberg
parent 52de1a9a33
commit 13f037d617
+1 -3
View File
@@ -169,9 +169,7 @@ export const plugin = new PanelPlugin<Options, FieldConfig>(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',