Getting issue "The input is empty." when clicking on augmentor field types on node form
Steps to Reproduce
- Add augmentor type Suggest Body Summary
- Add Suggest Body Summary field type
- Add content and click on Suggest Summary.
Proposed solution
Replace
const hasSourceFields = sourceFields.length > 0;
with
const hasSourceFields = Object.keys(sourceFields).length > 0;
in augmentor_library.js file as sourceFields variable contains object and not array
Issue fork augmentor-3540837
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
sonu.raj.chauhan commentedComment #4
sonu.raj.chauhan commentedComment #5
eleonelThanks for the fix.