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

Command icon 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

sonu.raj.chauhan created an issue. See original summary.

sonu.raj.chauhan’s picture

Issue summary: View changes
sonu.raj.chauhan’s picture

Status: Active » Needs review
eleonel’s picture

Status: Needs review » Fixed

Thanks for the fix.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.