Hi Pratik,
If you observe in the referenced component, the Leaflet block & every Client action with the LeafletMapName as the input parameter is non-mandatory, and it also has a default value set as "OSLeafletMap".

And in our solution, in any of the instances, we didn't explicitly specify the LeafletMapName input parameter value hence the default "OSLeafletMap" will be considered.
I hope this helps!
Kind regards,
Benjith Sam