Skip to content

Commit 58583ab

Browse files
author
Jicheng Lu
committed
minor fix
1 parent 605c42a commit 58583ab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib/services/agent-service.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ export async function getAgentRuleOptions() {
116116
}
117117

118118
/**
119-
* Get agent rule criteria providers
120-
* @returns {Promise<any[]>}
119+
* Get agent rule config options
120+
* @returns {Promise<any>}
121121
*/
122122
export async function getAgentRuleConfigOptions() {
123123
const url = endpoints.agentRuleConfigOptionsUrl;

src/routes/page/agent/[agentId]/agent-components/rules/agent-rule.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
}
249249
250250
const config = ruleConfigs[found.config.topology_name];
251-
const customParam = config.customParameters || {};
251+
const customParam = config?.customParameters || {};
252252
253253
if (customParam.htmlTag === 'iframe') {
254254
const params = JSON.stringify({

0 commit comments

Comments
 (0)