Prevent search when operation is chenged and there is no data.