mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-24 23:56:51 +00:00
Hide empty Properties key
This commit is contained in:
@@ -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 `<div class="node ${field.type(childPath)}-node ${cBody ? '' : 'no-body'}" ${category ? `data-category="${htmlEncode(category)}"` : ''}>
|
||||
<div class="node-header">
|
||||
${error(childPath, mounter)}
|
||||
|
||||
Reference in New Issue
Block a user