From fdcbb686164926e4a7142af2438c0491aaa89cea Mon Sep 17 00:00:00 2001
From: Oliver <oliver.henry.walters@gmail.com>
Date: Thu, 22 Feb 2024 11:05:46 +1100
Subject: [PATCH] Fix for build output table (#6549)

- Correctly display passed test count
---
 InvenTree/templates/js/translated/build.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/InvenTree/templates/js/translated/build.js b/InvenTree/templates/js/translated/build.js
index 1ac5b477da..97b9ba3095 100644
--- a/InvenTree/templates/js/translated/build.js
+++ b/InvenTree/templates/js/translated/build.js
@@ -1259,7 +1259,7 @@ function loadBuildOutputTable(build_info, options={}) {
             let final_result = false;
 
             row.tests.forEach(function(result) {
-                if (result.key == test.key) {
+                if (result.template == test.pk) {
                     final_result = result.result;
                 }
             });