From 0ed884362b46015f67438cad6e42715911fccc9a Mon Sep 17 00:00:00 2001 From: Nathan Reese Date: Thu, 8 Apr 2021 15:31:49 -0600 Subject: [PATCH] tslint --- .../common/index_patterns/index_patterns/index_patterns.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/data/common/index_patterns/index_patterns/index_patterns.ts b/src/plugins/data/common/index_patterns/index_patterns/index_patterns.ts index 3708dc8aa403c..04d2785137719 100644 --- a/src/plugins/data/common/index_patterns/index_patterns/index_patterns.ts +++ b/src/plugins/data/common/index_patterns/index_patterns/index_patterns.ts @@ -535,7 +535,9 @@ export class IndexPatternsService { }); indexPattern.id = response.id; this.indexPatternCache.set(indexPattern.id, Promise.resolve(indexPattern)); - this.savedObjectsCache.push(response); + if (this.savedObjectsCache) { + this.savedObjectsCache.push(response as SavedObject); + } return indexPattern; }