From 87f5987e22b3d1c05b29a25ef354ecd63ac9e1df Mon Sep 17 00:00:00 2001 From: Alassane Yattara Date: Mon, 16 Oct 2023 17:52:13 +0100 Subject: Toaster: Fixed javascript issue on tests.browser.test_js_unit_tests - Update /toastergui/static/js/projectpage.js to fix following javascript issue that make fail test_js_unit_tests. Uncaught TypeError: Cannot read properties of null (reading 'name') Signed-off-by Alassane Yattara Signed-off-by: Richard Purdie --- lib/toaster/toastergui/static/js/projectpage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/toaster/toastergui/static/js/projectpage.js b/lib/toaster/toastergui/static/js/projectpage.js index 506471e09..a3c95810a 100644 --- a/lib/toaster/toastergui/static/js/projectpage.js +++ b/lib/toaster/toastergui/static/js/projectpage.js @@ -61,7 +61,7 @@ function projectPageInit(ctx) { distroChangeInput.val(urlParams.setDistro); distroChangeBtn.click(); } else { - updateDistroName(prjInfo.distro.name); + updateDistroName(prjInfo.distro?.name); } /* Now we're really ready show the page */ -- cgit 1.2.3-korg