Skip to content

Commit 173ae54

Browse files
authored
Merge pull request #462 from yileicn/main
fix: use field_type (snake_case) to display routing rule field type
2 parents c5621d0 + 84c01e5 commit 173ae54

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/lib/helpers/types/agentTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
* @property {string} type
184184
* @property {string} field
185185
* @property {string} description
186-
* @property {string} fieldType
186+
* @property {string} [field_type]
187187
* @property {boolean} required
188188
* @property {string} redirectTo
189189
* @property {string?} [redirect_to_agent]

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
<td class="arr-value">{rule.description}</td>
3939
</tr>
4040
{/if}
41-
{#if !!rule.fieldType}
41+
{#if !!rule.field_type}
4242
<tr class="arr-tr">
4343
<th class="arr-key">Field Type</th>
44-
<td class="arr-value">{rule.fieldType}</td>
44+
<td class="arr-value">{rule.field_type}</td>
4545
</tr>
4646
{/if}
4747
<tr class="arr-tr">

0 commit comments

Comments
 (0)