From 03175064490ad64c553319ada440e0ab892b0bf0 Mon Sep 17 00:00:00 2001 From: Alex Inkin Date: Sun, 19 Jun 2022 10:13:09 +0300 Subject: [PATCH] fix: properly check if data can be processed --- client/lib/json-patch-lib.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/lib/json-patch-lib.ts b/client/lib/json-patch-lib.ts index 10dc42f..8f2ab0e 100644 --- a/client/lib/json-patch-lib.ts +++ b/client/lib/json-patch-lib.ts @@ -75,7 +75,7 @@ function recursiveApply> (data: T, path: readonly st } function isObject (val: any): val is Record { - return typeof val === 'object' && !Array.isArray(val) && val !== null + return typeof val === 'object' && val !== null } function jsonPathToKeyArray (path: string): string[] {