Skip to content
This repository was archived by the owner on Sep 22, 2023. It is now read-only.

Commit be84172

Browse files
Update src/renderer/components/AgentBase.vue
replace optional chaining as suggested by Char Co-authored-by: Char Howland <60200853+cjhowland@users.noreply.github.com> Signed-off-by: Matthias Sieber <manonthemat@users.noreply.github.com>
1 parent ea1de94 commit be84172

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/components/AgentBase.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<el-form :disabled="dids.length === 0">
1616
<el-select v-model="active_did" no-data-text="No DIDs found" filterable placeholder="Activate DID">
1717
<el-option v-for="did in dids" :key="did.did"
18-
:label="did.metadata?.label ? `${did.metadata.label} (${did.did})` : did.did" :value="did">
18+
:label="'metadata' in did && 'label' in did.metadata ? `${did.metadata.label} (${did.did})` : did.did" :value="did">
1919
</el-option>
2020
</el-select>
2121
<!--

0 commit comments

Comments
 (0)