2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 12:05:53 +00:00

Fix for build.js (#6437) (#6438)

- 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:
github-actions[bot]
2024-02-07 10:37:25 +11:00
committed by GitHub
parent e5e18f3711
commit 0782d86d12

View File

@ -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>`;