Correctly toggle chevron state in sidebar.

As per: f435ad65#commitcomment-9125656.

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>