mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2026-05-28 10:18:37 +00:00
types: optimize data types (#254)
This commit is contained in:
@@ -39,7 +39,7 @@ export default function useLegendProcess(legend?: LegendOptions) {
|
||||
}
|
||||
function aggregations(data: { [key: string]: number[] }, intervalTime: string[]) {
|
||||
const source: { [key: string]: unknown }[] = [];
|
||||
const keys = Object.keys(data || {}).filter((i: any) => Array.isArray(data[i]) && data[i].length);
|
||||
const keys = Object.keys(data || {}).filter((i: string) => Array.isArray(data[i]) && data[i].length);
|
||||
const headers = [];
|
||||
|
||||
for (const [key, value] of keys.entries()) {
|
||||
|
||||
Reference in New Issue
Block a user