Added a guard to prevent spurious refresh when the view filter is set.