should not dispatch event for mapSaved until setting the map id in the repository