Commit a30ec812 authored by Juorder Gonzalez's avatar Juorder Gonzalez

Merge pull request #190 from ZBoxApp/issues_resolved_manager

fix distribution list, when try to see it in search view.
parents 30c8fcac 7e50b1ef
...@@ -61,9 +61,10 @@ export default class DistributionLists extends React.Component { ...@@ -61,9 +61,10 @@ export default class DistributionLists extends React.Component {
} }
getDistributionLists() { getDistributionLists() {
//const domain = DomainStore.getCurrent();
const id = this.props.params.id; const id = this.props.params.id;
const response = {}; const response = {};
const domain = DomainStore.getCurrent(); const domain = null;
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if (domain) { if (domain) {
...@@ -84,7 +85,7 @@ export default class DistributionLists extends React.Component { ...@@ -84,7 +85,7 @@ export default class DistributionLists extends React.Component {
return Client.getDistributionList(id, (success) => { return Client.getDistributionList(id, (success) => {
const distributionsList = success; const distributionsList = success;
response.distributionsList = distributionsList; response.distributionsList = distributionsList;
const domainId = this.props.params.domain_id; const domainId = this.props.params.domain_id === 'null' ? distributionsList.name.split('@').pop() : this.props.params.domain_id;
distributionsList.getOwners((error, owners) => { distributionsList.getOwners((error, owners) => {
if (owners) { if (owners) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment