Skip to content

Fix bug for nonsequencial zone IDs

Compare
Choose a tag to compare
@sbozarth sbozarth released this 14 Nov 05:41
· 17 commits to master since this release

Fix for #10.

When an LC7001 has non-sequencial zone ID numbers, initialization of the plugin failed. While the [].forEach() function handles missing elements well, the [].findIndex() function does not. Corrected [].findIndex() call to check for existence of array element before checking its properties.