Fix narrative panel tests
(#541) - Sort by inconsistencies
Close panel if datum changes to null
Fix js tests