async componentDidMount()

in src/VariableQueryEditor.tsx [43:54]


    async componentDidMount() {
        await this.props.datasource.ensureGCEDefaultProject();
        const projectId = this.props.query.projectId || (await this.props.datasource.getDefaultProject());
        const projects = (await this.props.datasource.getProjects());
      
        const state: any = {
            projects,
            loading: false,
            projectId,
        };
        this.setState(state, () => this.onPropsChange());
    }