Merge ~steverydz/maas:fix-machine-listing-js-error into maas:master
Proposed by
Steve Rydz
Status: | Rejected |
---|---|
Rejected by: | Steve Rydz |
Proposed branch: | ~steverydz/maas:fix-machine-listing-js-error |
Merge into: | maas:master |
Diff against target: |
49 lines (+28/-0) 2 files modified
src/maasserver/static/js/angular/directives/machines_table.js (+4/-0) src/maasserver/static/js/angular/directives/tests/test_machines_table.js (+24/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
MAAS Lander | Needs Fixing | ||
Björn Tillenius | Disapprove | ||
Anthony Dillon | Approve | ||
Review via email: mp+361889@code.launchpad.net |
Commit message
LP: #1811377 - Fix JS error on machine list page
Description of the change
If an array isn't passed into the `removeDuplicates` method an error is shown in the console. This change adds a type check to ensure the array exists.
QA steps:
1. Go to machines list view
2. Click through to a machine detail view
3. Click the navigation link back to machines list view
4. Check the browser console
5. There should not be an error for `filter of undefined` in the console
To post a comment you must log in.
There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.
Code and QA +1