Fix bug in saving new parent list when changing from inventory to list view.
(Used prevModeView to mark the previous modeview )

Ticket: GCP-9348

Reviewer: Darla (Post-Commit)