Fix markdown filter (failing for undefined)

This commit is contained in:
Arik Fraimovich 2014-10-06 09:41:56 +03:00
parent 9b23fb4235
commit 297ac5c9bd

View File

@ -70,6 +70,9 @@ angular.module('redash.filters', []).
.filter('markdown', ['$sce', function ($sce) {
return function (text) {
if (!text) {
return "";
}
return $sce.trustAsHtml(marked(text));
}
}]);