Browse Source

ref(globalsdkupdatealert): update hook deps (#37161)

* ref(globalsdkupdatealert): update hook deps

* style(lint): Auto commit lint changes

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
Jonas 2 years ago
parent
commit
ec3722dfa5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      static/app/components/globalSdkUpdateAlert.tsx

+ 1 - 1
static/app/components/globalSdkUpdateAlert.tsx

@@ -65,7 +65,7 @@ function InnerGlobalSdkUpdateAlert(
     return () => {
       isUnmounted = true;
     };
-  }, [api]);
+  }, [api, organization]);
 
   if (!showUpdateAlert || !props.sdkUpdates?.length) {
     return null;