diff --git a/packages/kbn-es/src/utils/cache.ts b/packages/kbn-es/src/utils/cache.ts index 819119b6ce010..5f9f0cb9b6bf2 100644 --- a/packages/kbn-es/src/utils/cache.ts +++ b/packages/kbn-es/src/utils/cache.ts @@ -18,13 +18,16 @@ export const cache = { return { ...JSON.parse(meta), + exists: true, }; } catch (e) { if (e.code !== 'ENOENT') { throw e; } - return {}; + return { + exists: false, + }; } },