Revert "[6.4] fixing issue with importing vis with missing saved search (#22029)" (#22093)

* Revert "[DOCS]:  Release notes, release highlights, and breaking changes for 6.4 (#22015)"

This reverts commit 0c820163f0.

* Revert "fixing issue with importing vis with missing saved search (#22029) (#22076)"

This reverts commit 4401b02365.
This commit is contained in:
Bill McConaghy 2018-08-16 18:58:29 -04:00 committed by GitHub
parent 98129c10aa
commit 7735bfcd04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -217,12 +217,9 @@ export async function resolveSavedObjects(
if (await importDocument(obj, otherDoc, overwriteAll)) {
importedObjectCount++;
}
} catch (error) {
if (error instanceof SavedObjectNotFound) {
if (error.savedObjectType === 'search') {
failedImports.push({ obj, error });
}
if (error.savedObjectType === 'index-pattern') {
} catch (err) {
if (err instanceof SavedObjectNotFound) {
if (err.savedObjectType === 'index-pattern') {
if (obj.savedSearchId) {
conflictedSavedObjectsLinkedToSavedSearches.push(obj);
} else {