Skip to content

Commit

Permalink
Support missing payload message (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
gogiel authored Jun 13, 2020
1 parent fef1c6a commit 4204111
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions rails_panel/assets/javascripts/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,9 @@ angular.module('RailsPanel', [])
return function(input) {
return ansi2html(input);
}
})
.filter('toString', function() {
return function(input) {
return input || "";
}
});
2 changes: 1 addition & 1 deletion rails_panel/panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
<tbody>
<tr ng-repeat="log in activeLog()">
<td><a href="{{log.payload.filename | editorify:log.payload.line}}">{{log.payload.filename | normalizePath}}:{{log.payload.line}}</a></td>
<td ng-bind-html-unsafe="log.payload.message | sanitize | ansi2html"></td>
<td ng-bind-html-unsafe="log.payload.message | toString | sanitize | ansi2html"></td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit 4204111

Please sign in to comment.