Skip to content

Commit 6dd1ed1

Browse files
committed
minor refactor
1 parent 18fcf2d commit 6dd1ed1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Diff for: src/QueryEditor.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import React, { ChangeEvent, PureComponent } from 'react';
44
import { DataSource } from './datasource';
55
import { GitlabDataSourceOptions, GitlabQuery } from './types';
66

7-
87
const { FormField } = LegacyForms;
98

109
type Props = QueryEditorProps<DataSource, GitlabQuery, GitlabDataSourceOptions>;

Diff for: src/datasource.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @ts-ignore
21
import {
32
DataQueryRequest,
43
DataQueryResponse,
@@ -102,7 +101,7 @@ export class DataSource extends DataSourceApi<GitlabQuery, GitlabDataSourceOptio
102101
const response = await getBackendSrv().datasourceRequest({
103102
method: 'GET',
104103
url: this.url + routePath + path,
105-
params,
104+
params: { ...params, per_page: 100 },
106105
});
107106
console.debug(`Gitlab API response: ${response}`);
108107
return response;

0 commit comments

Comments
 (0)