mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36:44 +00:00
Handle undefined values (#9139)
This commit is contained in:
parent
03278c56c9
commit
09cdf72bda
@ -100,7 +100,7 @@ export function getStatusCodeOptions(type: ModelType | string): any[] {
|
||||
return [];
|
||||
}
|
||||
|
||||
return Object.values(statusCodes.values).map((entry) => {
|
||||
return Object.values(statusCodes?.values ?? []).map((entry) => {
|
||||
return {
|
||||
value: entry.key,
|
||||
display_name: entry.label
|
||||
|
Loading…
x
Reference in New Issue
Block a user