Upgrade mcschema

This commit is contained in:
Misode
2020-11-12 18:15:50 +01:00
parent 104904fd7a
commit dd3ac92c4e
3 changed files with 17 additions and 16 deletions

View File

@@ -164,6 +164,7 @@ export const renderHtml: Hook<[any, Mounter], [string, string, string]> = {
.filter(k => activeFields[k].enabled(path))
.map(k => {
const field = activeFields[k]
if (field.hidden && field.hidden()) return ''
const childPath = getChildModelPath(path, k)
const category = field.category(childPath)
const [cPrefix, cSuffix, cBody] = field.hook(this, childPath, value[k], mounter)