mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fix types
This commit is contained in:
parent
5f7b374975
commit
2699b1a204
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user