componentDidMount()

in dashboards-notebooks/public/components/notebook.tsx [625:639]


  componentDidMount() {
    this.setBreadcrumbs('');
    this.loadNotebook();
    this.checkIfReportingPluginIsInstalled();
    const url = new URL(window.location);
    if (url.searchParams.get('view') === null) {
      this.configureViewParameter('view_both');
    }
    if (url.searchParams.get('view') === 'output_only') {
      this.setState({selectedViewId: 'output_only'});
    }
    else if (url.searchParams.get('view') === 'input_only') {
      this.setState({selectedViewId: 'input_only'});
    }
  }