mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
Fix markdown filter (failing for undefined)
This commit is contained in:
parent
9b23fb4235
commit
297ac5c9bd
@ -70,6 +70,9 @@ angular.module('redash.filters', []).
|
||||
|
||||
.filter('markdown', ['$sce', function ($sce) {
|
||||
return function (text) {
|
||||
if (!text) {
|
||||
return "";
|
||||
}
|
||||
return $sce.trustAsHtml(marked(text));
|
||||
}
|
||||
}]);
|
Loading…
Reference in New Issue
Block a user