2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 19:15:41 +00:00

Handle undefined values (#9139)

This commit is contained in:
Oliver
2025-02-22 11:52:11 +11:00
committed by GitHub
parent 03278c56c9
commit 09cdf72bda

View File

@ -100,7 +100,7 @@ export function getStatusCodeOptions(type: ModelType | string): any[] {
return []; return [];
} }
return Object.values(statusCodes.values).map((entry) => { return Object.values(statusCodes?.values ?? []).map((entry) => {
return { return {
value: entry.key, value: entry.key,
display_name: entry.label display_name: entry.label