meme: fix empty meme issue

This commit is contained in:
Chris Sexton 2021-01-09 16:44:17 -05:00 committed by Chris Sexton
parent 841d4c000e
commit bca96b6dcd
1 changed files with 3 additions and 0 deletions

View File

@ -147,6 +147,9 @@ var memeIndex = `
}, },
filters: { filters: {
pretty: function(value) { pretty: function(value) {
if (!value) {
return ""
}
return JSON.stringify(JSON.parse(value), null, 2); return JSON.stringify(JSON.parse(value), null, 2);
} }
}, },