From eb78cdc3225f03714dea94d14b52e257c1da154f Mon Sep 17 00:00:00 2001 From: Danielv123 Date: Sat, 18 May 2024 11:59:37 +0100 Subject: [PATCH] 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. --- packages/web_ui/src/components/BaseConfigTree.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web_ui/src/components/BaseConfigTree.tsx b/packages/web_ui/src/components/BaseConfigTree.tsx index 8354090d..f2a0e922 100644 --- a/packages/web_ui/src/components/BaseConfigTree.tsx +++ b/packages/web_ui/src/components/BaseConfigTree.tsx @@ -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 =