IO-924 Rest of phonebook implementation
This commit is contained in:
@@ -66,7 +66,10 @@ export function* openChatByPhone({ payload }) {
|
||||
yield put(setSelectedConversation(conversations[0].id));
|
||||
|
||||
//Check to see if this job ID is already a child of it. If not add the tag.
|
||||
if (!conversations[0].job_conversations.find((jc) => jc.jobid === jobid))
|
||||
if (
|
||||
jobid &&
|
||||
!conversations[0].job_conversations.find((jc) => jc.jobid === jobid)
|
||||
)
|
||||
yield client.mutate({
|
||||
mutation: INSERT_CONVERSATION_TAG,
|
||||
variables: {
|
||||
|
||||
Reference in New Issue
Block a user