diff --git a/src/runtime/deserializer.ts b/src/runtime/deserializer.ts index 66783aa4..f82444b5 100644 --- a/src/runtime/deserializer.ts +++ b/src/runtime/deserializer.ts @@ -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;