Use ES6 Map in ToggleBranch