mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
Incorporate Robert's suggestion
This commit is contained in:
parent
029c2a84a4
commit
e2524806ac
@ -16,11 +16,11 @@ This page contains release notes for the SDK.
|
||||
|
||||
.. code-block:: javascript
|
||||
|
||||
argument.fields.find(f => f.label === "foo").fields.find(f => f.label === "bar").value
|
||||
import { DamlLfValue } from '@da/ui-core';
|
||||
// Accessing field 'bar' of field 'foo' of the argument
|
||||
DamlLfValue.evalPath(argument, ["foo", "bar"])
|
||||
DamlLfValue.toJSON(argument).foo.bar
|
||||
|
||||
// Or using a helper function
|
||||
DamlLfValue.evalPath(argument, ["foo", "bar"])
|
||||
DamlLfValue.toJSON(argument).foo.bar
|
||||
|
||||
0.11.32
|
||||
-------
|
||||
|
Loading…
Reference in New Issue
Block a user