Merge branch 'build-improvement' into performance-optimizations-testing
This commit is contained in:
@@ -239,21 +239,7 @@ export default class ContactEditView extends Vue {
|
||||
this.contact = contact;
|
||||
this.contactName = contact.name || "";
|
||||
this.contactNotes = contact.notes || "";
|
||||
|
||||
// Ensure contactMethods is a valid array of ContactMethod objects
|
||||
if (Array.isArray(contact.contactMethods)) {
|
||||
this.contactMethods = contact.contactMethods.filter((method) => {
|
||||
return (
|
||||
method &&
|
||||
typeof method === "object" &&
|
||||
typeof method.label === "string" &&
|
||||
typeof method.type === "string" &&
|
||||
typeof method.value === "string"
|
||||
);
|
||||
});
|
||||
} else {
|
||||
this.contactMethods = [];
|
||||
}
|
||||
this.contactMethods = contact.contactMethods || [];
|
||||
} else {
|
||||
this.notify.error(
|
||||
`${NOTIFY_CONTACT_NOT_FOUND.message} ${contactDid}`,
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
<!-- Breadcrumb -->
|
||||
<div id="ViewBreadcrumb" class="mb-8">
|
||||
<h1 id="ViewHeading" class="text-lg text-center font-light relative px-7">
|
||||
<!-- Back -->
|
||||
<button
|
||||
<!-- Go to 'contacts' instead of just 'back' because they could get here from an edit page (and going back there is annoying). -->
|
||||
<router-link
|
||||
:to="{ name: 'contacts' }"
|
||||
class="text-lg text-center px-2 py-1 absolute -left-2 -top-1"
|
||||
@click="goBack"
|
||||
>
|
||||
<font-awesome icon="chevron-left" class="fa-fw"></font-awesome>
|
||||
</button>
|
||||
</router-link>
|
||||
Identifier Details
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user