Skip to content

DDL should default the 'text' name of ddl #12

@alexburley

Description

@alexburley

If i call a DDL and the text value does not exist then the DDL fails. I think we should fallback to the 'value' property instead.

e.g.:

for array

[ { id: '5e283c09cff47e0001ddf536', name: 'NewFile.txt' },
  { id: '5e28446bcff47e0001ddf6ac', name: 'NewFile.txt' },
  { id: '5e29c334cff47e0001751d63', name: 'ab-wf-testing' },
  { id: '5e32bc8acff47e0001bb4250', name: 'test123' },
  { id: '5e32bb74cff47e0001bb4228' },
  { id: '5d078fbe3e1a3d6ca8ef81eb', name: 'anewname.txt' },
  { id: '5e29ca244cedfd0001d06fd7', name: 'TestAsset' },
  { id: '5d078fcdb9fc66749b81d1a6', name: 'test1.mpeg' },
  { id: '5e32df854cedfd0001642151', name: 'ab-wf-testing' },
  { id: '5e209cae4cedfd00010d6a9d' } ] 'name' 'id'

and invocation:

DDL(results, 'name', 'id');

This will fail

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions