mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
ESLint: no-restricted-syntax (#10889)
* Enable no-restricted syntax rule * Fix webpack.config.js * Remove unused function from utils/common.js * Refactor triple nested for loop * Fix loops in src/explore components * Fix loops in SqlLab components * Fix loops in AlteredSliceTag * Fix loops in FilterableTable * Add fixtures and uinit tests for findControlItem * Add license
This commit is contained in:
committed by
GitHub
parent
2003442b32
commit
ccfd293227
@@ -110,10 +110,9 @@ class TableElement extends React.PureComponent {
|
||||
/>
|
||||
);
|
||||
}
|
||||
let latest = [];
|
||||
for (const k in table.partitions.latest) {
|
||||
latest.push(`${k}=${table.partitions.latest[k]}`);
|
||||
}
|
||||
let latest = Object.entries(table.partitions.latest).map(
|
||||
([key, value]) => `${key}=${value}`,
|
||||
);
|
||||
latest = latest.join('/');
|
||||
header = (
|
||||
<Well bsSize="small">
|
||||
|
||||
Reference in New Issue
Block a user