Skip to content

Commit

Permalink
Use edit path. Lower case on object noun.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Caldwell committed Sep 10, 2021
1 parent 3f903ad commit 8fae482
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import { getTopNavConfig } from '../top_nav_config';
import { MapQuery } from '../../../../common/descriptor_types';
import { goToSpecifiedPath } from '../../../render_app';
import { MapSavedObjectAttributes } from '../../../../common/map_saved_object_type';
import { getFullPath, APP_ID } from '../../../../common/constants';
import { getFullPath, getEditPath, APP_ID } from '../../../../common/constants';
import {
getInitialQuery,
getInitialRefreshConfig,
Expand Down Expand Up @@ -447,12 +447,12 @@ export class MapApp extends React.Component<Props, State> {
if (this.props.spacesApi && resolvedSavedObject?.outcome === 'conflict') {
const currentObjectId = resolvedSavedObject.saved_object.id;
const otherObjectId = resolvedSavedObject.alias_target_id!;
const otherObjectPath = this.props.http.basePath.prepend(getFullPath(otherObjectId));
const otherObjectPath = getEditPath(otherObjectId);
this.setState({
savedObjectWarning: (
<>
{this.props.spacesApi.ui.components.getLegacyUrlConflict({
objectNoun: 'Saved map',
objectNoun: 'saved map',
currentObjectId,
otherObjectId,
otherObjectPath,
Expand Down

0 comments on commit 8fae482

Please sign in to comment.