From 5223bef5e7f2e228ad82996ef950dc28a21c3bf7 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Sat, 10 Sep 2022 01:31:38 +0300 Subject: [PATCH] Fix error when viewing messages without header in topic viewer --- clover/www/js/topics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clover/www/js/topics.js b/clover/www/js/topics.js index 1bb3069f..1ad13176 100644 --- a/clover/www/js/topics.js +++ b/clover/www/js/topics.js @@ -54,7 +54,7 @@ function viewTopic(topic) { document.title = topic; if (mouseDown) return; - if (msg.header.stamp) { + if (msg.header && msg.header.stamp) { if (params.date || params.offset) { let date = new Date(msg.header.stamp.secs * 1e3 + msg.header.stamp.nsecs * 1e-6); if (params.date) msg.header.date = date.toISOString();