Skip to content

Commit

Permalink
select primary site alias by default
Browse files Browse the repository at this point in the history
  • Loading branch information
schotman authored and DnnSoftwarePersian committed May 17, 2020
1 parent 3aee0bd commit d76393f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ class EditUrl extends Component {
const {url, saving, pageHasParent, siteAliases, primaryAliasId, isOpened, onSave, onCancel} = this.props;
const aliases = this.getOptions(siteAliases);
const siteAliasUsageOptions = this.getSiteAliasUsageOptions(pageHasParent);
if (!this.state.hasChanges && url.siteAlias.Key !== primaryAliasId)
{
this.props.onChange("siteAlias", primaryAliasId);
}
return (
<Collapsible accordion={true} isOpened={isOpened} keepCollapsedContent={true} className={"editUrl"}>
<div>
Expand Down

0 comments on commit d76393f

Please sign in to comment.