fix types

This commit is contained in:
Matthias Mair 2024-08-30 18:19:09 +02:00
parent 5f7b374975
commit 2699b1a204
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A

View File

@ -39,7 +39,7 @@ function AllUnitTable() {
enableColumnSwitching: false,
dataFormatter: (data: any) => {
let units = data.available_units ?? {};
return Object.entries(units).map(([key, values]) => {
return Object.entries(units).map(([key, values]: [string, any]) => {
return {
name: values.name,
is_alias: values.is_alias,