From b7459abd23dda1b6dcc05aa5e0e24e79ba72d18c Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Sat, 9 Jan 2021 16:44:17 -0500 Subject: [PATCH] meme: fix empty meme issue --- plugins/meme/web.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/meme/web.go b/plugins/meme/web.go index a08f6df..60a5e76 100644 --- a/plugins/meme/web.go +++ b/plugins/meme/web.go @@ -147,6 +147,9 @@ var memeIndex = ` }, filters: { pretty: function(value) { + if (!value) { + return "" + } return JSON.stringify(JSON.parse(value), null, 2); } },