The issue was that when zooming to an ESC, the code always tries to reset the ISDs dropdown. But when zooming on page load, it was trying to reset that dropdown's tom-select before the tom-select had even been created. So I've simply added a check that the tom-select exists, and if it doesn't exist then the function doesn't try resetting it.
Resolves #35
The issue was that when zooming to an ESC, the code always tries to reset the ISDs dropdown. But when zooming on page load, it was trying to reset that dropdown's tom-select before the tom-select had even been created. So I've simply added a check that the tom-select exists, and if it doesn't exist then the function doesn't try resetting it.