mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-27 16:58:46 +00:00
Only render tree when locale has finished loading
This commit is contained in:
@@ -12,7 +12,7 @@ type TreePanelProps = {
|
||||
onError: (message: string) => unknown,
|
||||
}
|
||||
export function Tree({ lang, model, blockStates, onError }: TreePanelProps) {
|
||||
if (!model || !blockStates) return <></>
|
||||
if (!model || !blockStates || lang === 'none') return <></>
|
||||
|
||||
const [error] = useErrorBoundary(e => {
|
||||
onError(`Error rendering the tree: ${e.message}`)
|
||||
|
||||
Reference in New Issue
Block a user