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

add support for nested results property #64

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

adhithiya05
Copy link

Added support to access nested data property in response.

@coveralls
Copy link

coveralls commented Oct 25, 2018

Pull Request Test Coverage Report for Build 63

  • 7 of 13 (53.85%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-4.8%) to 91.667%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/components/Autocomplete.vue 7 13 53.85%
Files with Coverage Reduction New Missed Lines %
src/components/Autocomplete.vue 1 91.67%
Totals Coverage Status
Change from base Build 57: -4.8%
Covered Lines: 160
Relevant Lines: 171

💛 - Coveralls

@@ -301,8 +302,21 @@ export default {
* @return {Array}
*/
setResults (response) {
if (this.resultsProperty && response[this.resultsProperty]) {
return response[this.resultsProperty]
if (this.resultsProperty) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Owner

@charliekassel charliekassel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would be useful functionality, but I'd rather not add another dependency in the form of lodash/get.
On another note the documentation should be updated with examples and a test case added for new functionality.

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

Successfully merging this pull request may close these issues.

4 participants