@tanstack/form-core
Advanced tools
Comparing version 0.37.0 to 0.37.1
@@ -21,3 +21,3 @@ function functionalUpdate(updater, input) { | ||
const key = path.shift(); | ||
if (typeof key === "string") { | ||
if (typeof key === "string" || typeof key === "number" && !Array.isArray(parent)) { | ||
if (typeof parent === "object") { | ||
@@ -36,3 +36,3 @@ if (parent === null) { | ||
} | ||
if (Array.isArray(parent) && key !== void 0) { | ||
if (Array.isArray(parent) && typeof key === "number") { | ||
const prefix = parent.slice(0, key); | ||
@@ -39,0 +39,0 @@ return [ |
{ | ||
"name": "@tanstack/form-core", | ||
"version": "0.37.0", | ||
"version": "0.37.1", | ||
"description": "Powerful, type-safe, framework agnostic forms.", | ||
@@ -5,0 +5,0 @@ "author": "tannerlinsley", |
@@ -52,3 +52,6 @@ import type { ValidationCause } from './types' | ||
if (typeof key === 'string') { | ||
if ( | ||
typeof key === 'string' || | ||
(typeof key === 'number' && !Array.isArray(parent)) | ||
) { | ||
if (typeof parent === 'object') { | ||
@@ -68,3 +71,3 @@ if (parent === null) { | ||
if (Array.isArray(parent) && key !== undefined) { | ||
if (Array.isArray(parent) && typeof key === 'number') { | ||
const prefix = parent.slice(0, key) | ||
@@ -71,0 +74,0 @@ return [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
485915
6401