Fixed bindings
This commit is contained in:
@@ -140,7 +140,11 @@ export function ShaderCustomPanel({ layer, ui, onParameterChange, onResetParamet
|
||||
return;
|
||||
}
|
||||
if (element.parentNode !== node) {
|
||||
node.replaceChildren(element);
|
||||
try {
|
||||
node.replaceChildren(element);
|
||||
} catch (error) {
|
||||
setLoadError(error instanceof Error ? error.message : "Custom controls failed to mount.");
|
||||
}
|
||||
}
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user