From 4ac53a47335417666ed40e0e498c1a44df8be703 Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Fri, 15 Mar 2024 00:07:37 -0500 Subject: [PATCH] Only make recursive table on non-null objects --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 652a83e..d8b0b1f 100644 --- a/main.js +++ b/main.js @@ -137,7 +137,7 @@ function objectToTable(o) { // TODO: hack hack hack let table = ``; for (let [key, value] of Object.entries(o)) { - if (typeof value === "object") { + if (typeof value === "object" && value !== null) { value = objectToTable(value); } if (typeof value === "string" && /^https?:\/\//.test(value)) {