Fixed array conversion for UTM report.
This commit is contained in:
1 parent
f4a9336f9d
commit
96af798d42
2 files changed
+2
-2
No files matched your search
@@ -7,7 +7,7 @@ import ListTable from 'components/metrics/ListTable';
|
||||
import styles from './UTMView.module.css';
|
||||
import { useMessages } from 'components/hooks';
|
||||
|
||||
function toArray(data: { [key: string]: number }) {
|
||||
function toArray(data: { [key: string]: number } = {}) {
|
||||
return Object.keys(data)
|
||||
.map(key => {
|
||||
return { name: key, value: data[key] };
|
||||
|
||||
Reference in new issue
Block a user