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

Bug: body is not sent if any other parameters exist #19

Open
wolever opened this issue Apr 9, 2019 · 0 comments
Open

Bug: body is not sent if any other parameters exist #19

wolever opened this issue Apr 9, 2019 · 0 comments

Comments

@wolever
Copy link

wolever commented Apr 9, 2019

Because of this line, in filterListHelper:

for (let i = 0; i < take; i++) {
  if (fliterFn(context[i], i, context)) {
    ret = ret + options.fn(context[i]);
  }
}

The take parameter should be incremented if the filter matches, otherwise:

            {{#filterList operationParams "op=>op.inBody" "1"}}

Will bail on the first parameter, even if it isn't in the body.

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