Set a default env series for popular charm list queries

Without a default series set there is the potential for a race condition and the env series not being set so the charmbrowser popular result list is empty.
Yes I think it's time to move forward to the latest LTS now
On Dec 16, 2014 1:19 PM, "Jeff Pihach" <notifications@github.com> wrote:

> In app/subapps/browser/views/charmbrowser.js
> <https://github.com/juju/juju-gui/pull/680#discussion-diff-21918978>:
>
> > @@ -394,7 +394,10 @@ YUI.add('juju-charmbrowser', function(Y) {
> >            limit: 20,
> >            owner: '',
> >            sort: '-downloads',
> > -          series: this.get('envSeries')()
> > +          // If the user visits the application with a hash in the url there is
> > +          // a race condition and the envSeries is not yet populated so we
> > +          // need to default it.
> > +          series: this.get('envSeries')() || 'precise'
>
> There are other places in this file which use precise as the default
> fallback for envSeries, should those be changed as well?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/juju/juju-gui/pull/680/files#r21918978>.
>