File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -115,11 +115,14 @@ export async function getAgentRuleOptions() {
115115
116116/**
117117 * Get agent labels
118+ * @param {number? } [size]
118119 * @returns {Promise<string[]> }
119120 */
120- export async function getAgentLabels ( ) {
121+ export async function getAgentLabels ( size = null ) {
121122 const url = endpoints . agentLabelsUrl ;
122- const response = await axios . get ( url ) ;
123+ const response = await axios . get ( url , {
124+ params : { size : size }
125+ } ) ;
123126 return response . data ;
124127}
125128
Original file line number Diff line number Diff line change 123123 }
124124
125125 function getAgentLabelOptions () {
126- return getAgentLabels ().then (res => {
126+ return getAgentLabels (3000 ).then (res => {
127127 agentLabelOptions = res? .map (x => ({ label: x, value: x })) || [];
128128 }).catch (() => {
129129 agentLabelOptions = [];
You can’t perform that action at this time.
0 commit comments