summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlassane Yattara <alassane.yattara@savoirfairelinux.com>2023-10-16 17:52:13 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-10-17 11:41:33 +0100
commite0e0a3f510d786febaef8a82e7d7176e3324b62a (patch)
tree5ebcadd0a47bf5b90aa9d7606025ba68246a342e
parent50d88674b2a067c3fdf99a769b40e812e18061a7 (diff)
downloadpoky-e0e0a3f510d786febaef8a82e7d7176e3324b62a.tar.gz
bitbake: 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 <alassane.yattara@savoirfairelinux.com> (Bitbake rev: 87f5987e22b3d1c05b29a25ef354ecd63ac9e1df) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/projectpage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/projectpage.js b/bitbake/lib/toaster/toastergui/static/js/projectpage.js
index 506471e091..a3c95810a7 100644
--- a/bitbake/lib/toaster/toastergui/static/js/projectpage.js
+++ b/bitbake/lib/toaster/toastergui/static/js/projectpage.js
@@ -61,7 +61,7 @@ function projectPageInit(ctx) {
61 distroChangeInput.val(urlParams.setDistro); 61 distroChangeInput.val(urlParams.setDistro);
62 distroChangeBtn.click(); 62 distroChangeBtn.click();
63 } else { 63 } else {
64 updateDistroName(prjInfo.distro.name); 64 updateDistroName(prjInfo.distro?.name);
65 } 65 }
66 66
67 /* Now we're really ready show the page */ 67 /* Now we're really ready show the page */