From 0b34d64c8e8390632605e9df37ca962913f89a41 Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Wed, 28 Feb 2024 16:28:19 +0200 Subject: [PATCH] viewer: Small bugfixes Uncaught TypeError: node_data.runtime is undefined addmiscbuttons https://staging.kernelci.org:9000/viewer?node_id=65df407a9375a6d854fad559:209 onload https://staging.kernelci.org:9000/viewer?node_id=65df407a9375a6d854fad559:256 Signed-off-by: Denys Fedoryshchenko --- api/templates/viewer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/templates/viewer.html b/api/templates/viewer.html index 0c740fad..dba7a8ba 100644 --- a/api/templates/viewer.html +++ b/api/templates/viewer.html @@ -203,7 +203,7 @@ miscbuttonshtml += ""; var node_data = data.data; - if (node_data != null) { + if (node_data != null && node_data.runtime != null) { var runtime = node_data.runtime; var job = node_data.job_id; if (node_data.runtime.startsWith("lava") && node_data.job_id != null) {