diff --git a/src/interceptors/delta-response-interceptor.js b/src/interceptors/delta-response-interceptor.js index 84785396..9e8b9951 100644 --- a/src/interceptors/delta-response-interceptor.js +++ b/src/interceptors/delta-response-interceptor.js @@ -50,7 +50,7 @@ const patchValue = (session, handle, cacheId, patches) => { const cache = getHandleCache(session, handle); let entry = cache.get(cacheId); if (typeof entry === 'undefined') { - entry = patches.length && Array.isArray(patches[0].value) ? [] : {}; + entry = Array.isArray(patches[0].value) ? [] : {}; } if (patches.length) { if (patches[0].path === '/' && typeof patches[0].value !== 'object') {