Don't validate components within plugins

This commit is contained in:
Adria Navarro 2025-02-27 11:43:15 +01:00
parent 300734328f
commit 2865af3556
1 changed files with 4 additions and 1 deletions

View File

@ -239,7 +239,10 @@ function getMissingAncestors(
ancestors: string[] ancestors: string[]
): UIComponentError[] { ): UIComponentError[] {
const definition = definitions[component._component] const definition = definitions[component._component]
if (ancestors.some(a => !a.startsWith(BudibasePrefix))) {
// We don't have a way to know what components are used within a plugin component
return []
}
if (!definition?.requiredAncestors?.length) { if (!definition?.requiredAncestors?.length) {
return [] return []
} }