Table: Footer field selection fix (#103303)

This commit is contained in:
Drew Slobodnjak
2025-04-02 13:58:59 -07:00
committed by GitHub
parent 6a699b69ba
commit 240227c073
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ export const plugin = new PanelPlugin<Options, FieldConfig>(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',
@@ -175,7 +175,7 @@ export const plugin = new PanelPlugin<Options, FieldConfig>(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',