diff --git a/common/markdown_util.ts b/common/markdown_util.ts index 96f0e23b..9f5bb11d 100644 --- a/common/markdown_util.ts +++ b/common/markdown_util.ts @@ -60,6 +60,11 @@ export async function jsonToMDTable( } } + // Handle empty case manually, instead of three lines of || + if (headers.size == 0) { + return "*(empty table)*"; + } + const headerList = [...headers]; const lines = []; lines.push(