I\'m having trouble figuring out why this isn\'t filtering correctly. When I play around with it on the console, the filtered version (thedata) I pass to the state is correc