async onBucketChange()

in src/VariableQueryEditor.tsx [94:107]


    async onBucketChange(projectId: string, bucketId: string) {
        let views: string[] = [];
        if (!bucketId.startsWith('$')) {
            views = await this.props.datasource.getLogBucketViews(projectId, bucketId);
        }

        const state: any = {
            views,
            projectId,
            bucketId,
            viewId: '',
        };
        this.setState(state, () => this.onPropsChange());
    }