Fix formatting
This commit is contained in:
parent
720480cbbb
commit
d1f5b3b933
1 changed files with 2 additions and 4 deletions
|
|
@ -22,11 +22,9 @@ export function updateValueAtPath(
|
|||
|
||||
if (Array.isArray(obj)) {
|
||||
return updateArray(obj, path, value);
|
||||
}
|
||||
else if (typeof obj === "object" && obj !== null) {
|
||||
} else if (typeof obj === "object" && obj !== null) {
|
||||
return updateObject(obj as JsonObject, path, value);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
console.error(
|
||||
`Cannot update path ${path.join(".")} in non-object/array value:`,
|
||||
obj,
|
||||
|
|
|
|||
Loading…
Reference in a new issue