From 4204111affa05fec6793a77e37072bd4a079f251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20J=C4=99drychowski?= Date: Sat, 13 Jun 2020 20:13:20 +0200 Subject: [PATCH] Support missing payload message (#173) --- rails_panel/assets/javascripts/filters.js | 5 +++++ rails_panel/panel.html | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/rails_panel/assets/javascripts/filters.js b/rails_panel/assets/javascripts/filters.js index 9354d16..88dd5b1 100644 --- a/rails_panel/assets/javascripts/filters.js +++ b/rails_panel/assets/javascripts/filters.js @@ -48,4 +48,9 @@ angular.module('RailsPanel', []) return function(input) { return ansi2html(input); } + }) + .filter('toString', function() { + return function(input) { + return input || ""; + } }); diff --git a/rails_panel/panel.html b/rails_panel/panel.html index d8a80c9..60253bc 100644 --- a/rails_panel/panel.html +++ b/rails_panel/panel.html @@ -232,7 +232,7 @@ {{log.payload.filename | normalizePath}}:{{log.payload.line}} - +