Allow declaring custom config input components for objects

Input components allow us to customize the config field editing experience in plugins, but due to an oversight this did not include object definitions.
This commit is contained in:
Danielv123 authored and Daniel committed 2024-05-18 20:57:46 +01:00
1 parent 8705377232
commit eb78cdc322
1 file changed
+1 -1
@@ -270,7 +270,7 @@ function computeTreeData(
children: [],
};
if (def.type === "object") {
if (def.type === "object" && !Object.keys(control.inputComponents).includes(def.inputComponent!)) {
let restartRequiredProps = new Set(def.restartRequiredProps || []);
childNode.title = <Form.Item
label={<>