fix first click on toggle
Merge pull request #823 from Vizzuality/feature/degradation-layers

fix first click on toggle