From 9f900220a34754b1eb62a73e6ccbf6b4a3d30c14 Mon Sep 17 00:00:00 2001 From: Jennifer Q <66472237+latin-panda@users.noreply.github.com> Date: Tue, 2 Jul 2024 15:30:01 +0700 Subject: [PATCH] fix(#9229): old action bar prevents editing home places (#9230) --- webapp/src/ts/modules/contacts/contacts-content.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/ts/modules/contacts/contacts-content.component.ts b/webapp/src/ts/modules/contacts/contacts-content.component.ts index 011e2c4279e..d8ddc4701ea 100644 --- a/webapp/src/ts/modules/contacts/contacts-content.component.ts +++ b/webapp/src/ts/modules/contacts/contacts-content.component.ts @@ -272,7 +272,7 @@ export class ContactsContentComponent implements OnInit, OnDestroy { relevantForms: [], // This disables the "New Action" button until forms load sendTo: this.selectedContact?.type?.person ? this.selectedContact?.doc : '', canDelete: this.canDeleteContact, - canEdit: this.isOnlineOnly || this.userSettings?.facility_id !== this.selectedContact?.doc?._id, + canEdit: this.isOnlineOnly || !this.userSettings?.facility_id?.includes(this.selectedContact?.doc?._id), openContactMutedModal: (form) => this.openContactMutedModal(form), openSendMessageModal: (sendTo) => this.openSendMessageModal(sendTo), });