Skip to content
Snippets Groups Projects
Commit 9c256f06 authored by Benoit Alessandroni's avatar Benoit Alessandroni
Browse files

fix: primary contact display ?

parent 3828d770
No related branches found
No related tags found
2 merge requests!7fix: backlink on left in territory profile...,!6Alpha
Pipeline #16955 passed
......@@ -203,15 +203,17 @@ import("./utils.js").then((utils) => {
let primaryContact = {
resource: await tzcldprofile.tzcld_profile.primary_contact
};
let user_infos = null ;
let user_infos = null ;
if (primaryContact.resource) {
let user = await primaryContact.resource.user;
let user = await primaryContact.resource;
console.log("Primary contact user", user);
if (user) {
if ((primaryContact.resource !== null) && (await user !== undefined)) {
user_infos = await user ;
if (await user !== undefined) {
user_infos = await user;
}
}
console.log("Primary contact user information", user_infos);
}
if("label" in this.element.attributes) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment