Selection is an Object, not an array.

Because of this we need to use map a little differently to map the ids, not the
entries.