From 34548e3ecc751d3eed978eb09bed4647eb6b7810 Mon Sep 17 00:00:00 2001 From: Schuyler Cebulskie Date: Sat, 19 Nov 2016 21:23:16 -0500 Subject: [PATCH] Fix webhook example --- docs/custom/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/custom/index.js b/docs/custom/index.js index a076c4619..49e594bc0 100644 --- a/docs/custom/index.js +++ b/docs/custom/index.js @@ -4,14 +4,13 @@ const files = [ require('./faq'), require('./ping_pong'), require('./avatar'), + require('./webhook'), ]; const categories = {}; for (const file of files) { file.category = file.category.toLowerCase(); - if (!categories[file.category]) { - categories[file.category] = []; - } + if (!categories[file.category]) categories[file.category] = []; categories[file.category].push(file); }