mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
Allow specifying sort criteria on Table viz (#3460)
* Allow to specify sort criteria on table viz * Better handling of ordering
This commit is contained in:
committed by
GitHub
parent
49f24d128b
commit
816c517f0f
@@ -65,10 +65,11 @@ class ControlPanelsContainer extends React.Component {
|
||||
</Alert>
|
||||
}
|
||||
{this.sectionsToRender().map((section) => {
|
||||
const hasErrors = section.controlSetRows.some(rows => rows.some((s) => {
|
||||
const errors = ctrls[s].validationErrors;
|
||||
return errors && (errors.length > 0);
|
||||
}));
|
||||
const hasErrors = section.controlSetRows.some(rows => rows.some(s => (
|
||||
ctrls[s] &&
|
||||
ctrls[s].validationErrors &&
|
||||
(ctrls[s].validationErrors.length > 0)
|
||||
)));
|
||||
return (
|
||||
<ControlPanelSection
|
||||
key={section.label}
|
||||
|
||||
Reference in New Issue
Block a user