mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-24 23:56:51 +00:00
@@ -75,6 +75,7 @@ export function SourcePanel({ lang, name, model, blockStates, doCopy, doDownload
|
||||
model?.reset(data, false)
|
||||
} catch (e) {
|
||||
onError(`Error importing: ${message(e)}`)
|
||||
console.error(e)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -186,7 +186,7 @@ export const renderHtml: RenderHook = {
|
||||
}
|
||||
}
|
||||
const body = <>
|
||||
{(typeof value === 'object' && !(node.optional() && value === undefined)) &&
|
||||
{(typeof value === 'object' && value !== null && !(node.optional() && value === undefined)) &&
|
||||
Object.entries(getActiveFields(path))
|
||||
.filter(([_, child]) => child.enabled(path))
|
||||
.map(([key, child]) => {
|
||||
|
||||
Reference in New Issue
Block a user