mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 03:55:41 +00:00
- Catch potential empty build_detail attribute
(cherry picked from commit df5a3013e6
)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
committed by
GitHub
parent
e5e18f3711
commit
0782d86d12
@ -966,7 +966,7 @@ function loadBuildOrderAllocationTable(table, options={}) {
|
||||
switchable: false,
|
||||
title: '{% jstrans "Build Order" %}',
|
||||
formatter: function(value, row) {
|
||||
let ref = `${row.build_detail.reference}`;
|
||||
let ref = row.build_detail?.reference ?? row.build;
|
||||
let html = renderLink(ref, `/build/${row.build}/`);
|
||||
|
||||
html += `- <small>${row.build_detail.title}</small>`;
|
||||
|
Reference in New Issue
Block a user