From 1a568be1e62e5f44edc0b204cf2fa8d1798387af Mon Sep 17 00:00:00 2001 From: Misode Date: Tue, 29 Dec 2020 01:18:52 +0100 Subject: [PATCH] Hide empty Properties key --- src/app/hooks/renderHtml.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/hooks/renderHtml.ts b/src/app/hooks/renderHtml.ts index 4ae634c2..5bf360af 100644 --- a/src/app/hooks/renderHtml.ts +++ b/src/app/hooks/renderHtml.ts @@ -202,6 +202,7 @@ export const renderHtml: Hook<[any, Mounter], [string, string, string]> = { const category = field.category(childPath) const [cPrefix, cSuffix, cBody] = field.hook(this, childPath, value[k], mounter) + if (k === 'Properties' && cSuffix === '') return '' return `
${error(childPath, mounter)}