mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 12:05:53 +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,
|
switchable: false,
|
||||||
title: '{% jstrans "Build Order" %}',
|
title: '{% jstrans "Build Order" %}',
|
||||||
formatter: function(value, row) {
|
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}/`);
|
let html = renderLink(ref, `/build/${row.build}/`);
|
||||||
|
|
||||||
html += `- <small>${row.build_detail.title}</small>`;
|
html += `- <small>${row.build_detail.title}</small>`;
|
||||||
|
Reference in New Issue
Block a user