first try at mapping publics and channels, failed

uncaught typeError: cannot read property '0' of undefined