Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alexburley opened this issue Jan 30, 2020 · 0 comments
Open

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

alexburley opened this issue Jan 30, 2020 · 0 comments

Comments

@alexburley
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant