fix(trends): Reset error when requerying api
diff --git a/src/sentry/static/sentry/app/utils/discover/genericDiscoverQuery.tsx b/src/sentry/static/sentry/app/utils/discover/genericDiscoverQuery.tsx
index f6e5e1cd64782..683b30f01b0e6 100644
--- a/src/sentry/static/sentry/app/utils/discover/genericDiscoverQuery.tsx
+++ b/src/sentry/static/sentry/app/utils/discover/genericDiscoverQuery.tsx
@@ -152,6 +152,8 @@ class GenericDiscoverQuery<T, P> extends React.Component<Props<T, P>, State<T>>
 
     this.setState({isLoading: true, tableFetchID});
 
+    setError?.(undefined);
+
     if (limit) {
       apiPayload.per_page = limit;
     }

### Summary

Currently the error isn't disappearing when you change your api call and it succeeds. This will wipe the error state if you make another request.

Refs VIS-322