fix: Prevent deserialize break on safari < 15.4 (#1483)

This commit is contained in:
Igor Brasileiro
2023-07-19 19:52:55 +02:00
committed by GitHub
parent 2575ca5cad
commit 82b0f2c95a
+1 -1
View File
@@ -56,7 +56,7 @@ export function deserialize(
(o, k) => k === null ? o : o[k],
v,
);
parent[refPath.at(-1)!] = target;
parent[refPath[refPath.length - 1]!] = target;
}
}
return v;