2
0
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:
Oliver 2025-02-22 11:52:11 +11:00 committed by GitHub
parent 03278c56c9
commit 09cdf72bda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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