Don't validate components within plugins
This commit is contained in:
parent
300734328f
commit
2865af3556
|
@ -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 []
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue