Fixes to JsonForm and json

* Update model when JsonForm.editable set false
* Bugfixes in jsonPatch
This commit is contained in:
2025-09-21 00:00:50 +02:00
parent 123231833d
commit 6e1351d9ab
5 changed files with 65 additions and 6 deletions

View File

@@ -90,7 +90,7 @@ function jsonPatch(json, path, value) {
if (search === 'key') {
// find key tok in ptr
if (typeof ptr[tok] === 'undefined') {
return defaultValue;
return json;
} else {
if (toks.length === 0) {
ptr[tok] = value;