Skip to content

Commit

Permalink
chore: remove change
Browse files Browse the repository at this point in the history
  • Loading branch information
Caele committed Jan 17, 2024
1 parent b5d34e8 commit 889e546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interceptors/delta-response-interceptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 889e546

Please sign in to comment.