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

[#3302] - Fixed saved devices not showing #3303

Merged
merged 2 commits into from
Nov 18, 2019

Conversation

marvinkome
Copy link
Contributor

Before the PR (what is the issue or what needed to be done)

The issue was caused by JavaScript mistype. In the assignment-UI-view, the deviceInAssignment method the argument received was a number and the items in the array as a string. So type did not match

The solution

The solution was to convert the argument to a string to make it match the item in the array. Also removed some console.logs

Checklist

  • Connect the issue
  • Test plan
  • Copyright header
  • Code formatting
  • Documentation

@marvinkome marvinkome requested a review from muloem November 14, 2019 16:53
Copy link
Member

@muloem muloem left a comment

Choose a reason for hiding this comment

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

@marvinkome I slightly modified the code because the issue of having the array of Ids as strings was caused by using item.get('id') instead of item.get('keyId') to retrieve the object id.

@muloem muloem changed the base branch from develop to release/1.10.1 November 15, 2019 16:43
@marvinkome marvinkome merged commit 913f4bb into release/1.10.1 Nov 18, 2019
@marvinkome marvinkome deleted the issue-3302/fix-saved-devices-not-showing branch November 18, 2019 08:07
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.

2 participants