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-04 14:17:20 -06:00 committed by GitHub
parent 52de1a9a33
commit 13f037d617
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

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',