Browse Source

fix(new-widget-builder-experience): Add to New dashboard (#32055)

Nar Saynorath 3 years ago
parent
commit
1b3ebcdbf7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      static/app/views/dashboardsV2/create.tsx

+ 2 - 2
static/app/views/dashboardsV2/create.tsx

@@ -19,7 +19,7 @@ type Props = RouteComponentProps<{orgId: string; templateId?: string}, {}> & {
 };
 
 function CreateDashboard(props: Props) {
-  const {organization, location} = props;
+  const {location} = props;
   const {templateId} = props.params;
   const [newWidget, setNewWidget] = useState<Widget | undefined>();
   function renderDisabled() {
@@ -41,7 +41,7 @@ function CreateDashboard(props: Props) {
     if (constructedWidget) {
       browserHistory.replace(location.pathname);
     }
-  }, [organization.slug]);
+  }, [location.pathname]);
   return (
     <Feature
       features={['dashboards-edit']}