From 889e546fb8f6fe1a84bf7afda6a8c17431059ca6 Mon Sep 17 00:00:00 2001 From: caele Date: Wed, 17 Jan 2024 12:45:42 +0100 Subject: [PATCH] chore: remove change --- src/interceptors/delta-response-interceptor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') {