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

Commit

Permalink
Update src/renderer/components/AgentBase.vue
Browse files Browse the repository at this point in the history
replace optional chaining as suggested by Char

Co-authored-by: Char Howland <[email protected]>
Signed-off-by: Matthias Sieber <[email protected]>
  • Loading branch information
manonthemat and cjhowland authored Nov 15, 2022
1 parent ea1de94 commit be84172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/components/AgentBase.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<el-form :disabled="dids.length === 0">
<el-select v-model="active_did" no-data-text="No DIDs found" filterable placeholder="Activate DID">
<el-option v-for="did in dids" :key="did.did"
:label="did.metadata?.label ? `${did.metadata.label} (${did.did})` : did.did" :value="did">
:label="'metadata' in did && 'label' in did.metadata ? `${did.metadata.label} (${did.did})` : did.did" :value="did">
</el-option>
</el-select>
<!--
Expand Down

0 comments on commit be84172

Please sign in to comment.