This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Description
The problem lies here:
|
_reconfigure(current, changes) { |
|
// ensure the orgList is always lowercase |
|
const orgList = changes.find(patch => patch.path === '/orgList'); |
|
if (orgList) { |
|
debug('orgList changed'); |
|
this.options.orgList = orgList.value.map(element => element.toLowerCase()); |
|
} |
|
} |
The path is not only /orgList
|
const orgList = changes.find(patch => patch.path === '/orgList'); |
When reassigning this.options.orgList, this.options.orgList.map(element => element.toLowerCase()) should be used and not orgList.value.map(element => element.toLowerCase()).
|
this.options.orgList = orgList.value.map(element => element.toLowerCase()); |