mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix for build.js (#6437)
- Catch potential empty build_detail attribute
This commit is contained in:
parent
045af50f99
commit
df5a3013e6
@ -971,7 +971,7 @@ function loadBuildOrderAllocationTable(table, options={}) {
|
||||
switchable: false,
|
||||
title: '{% trans "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>`;
|
||||
|
Loading…
Reference in New Issue
Block a user