Fixes #4702: Only include selected repositories in UI when filtering for...

... content view.
Maybe I'm not following what `as` is doing here but shouldn't this be `expect(asFilter(array, 'items').items).toEqual(array);`?