mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
AK: Have JsonArray::set()
change values instead of inserting values
Resolves #18618.
8134dcc
changed `JsonArray::set()` to insert elements at an index
instead of changing existing elements in-place. Since no behavior
such as `Vector::try_at()` exists yet, it returns nothing.
This commit is contained in:
parent
590723aa3b
commit
582c55a1c8
2 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ ErrorOr<void> JsonArrayModel::set(int row, Vector<JsonValue>&& fields)
|
|||
obj.set(field_spec.json_field_name, move(fields.at(i)));
|
||||
}
|
||||
|
||||
TRY(m_array.set(row, move(obj)));
|
||||
m_array.set(row, move(obj));
|
||||
did_update();
|
||||
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue