[DataViews] dont check relationships for adhoc data views (#139376)

This commit is contained in:
Peter Pisljar 2022-08-25 18:31:41 +02:00 committed by GitHub
parent 7429f78cfa
commit 135115d833
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,7 +82,7 @@ export const EditIndexPattern = withRouter(
}, [savedObjectsManagement]);
useEffect(() => {
if (allowedTypes.length === 0) {
if (allowedTypes.length === 0 || !indexPattern.isPersisted()) {
return;
}
const allowedAsString = allowedTypes.map((item) => item.name);