@@ -14,7 +14,7 @@ import { getFlightsSavedObjects } from './sample_data/flights_saved_objects.js';
1414// @ts -ignore
1515import { getWebLogsSavedObjects } from './sample_data/web_logs_saved_objects.js' ;
1616import { registerMapsUsageCollector } from './maps_telemetry/collectors/register' ;
17- import { APP_ID , APP_ICON , MAP_SAVED_OBJECT_TYPE , createMapPath } from '../common/constants' ;
17+ import { APP_ID , APP_ICON , MAP_SAVED_OBJECT_TYPE , getExistingMapPath } from '../common/constants' ;
1818import { mapSavedObjects } from './saved_objects' ;
1919import { MapsXPackConfig } from '../config' ;
2020// @ts -ignore
@@ -58,7 +58,7 @@ export class MapsPlugin implements Plugin {
5858
5959 home . sampleData . addAppLinksToSampleDataset ( 'ecommerce' , [
6060 {
61- path : createMapPath ( '2c9c1f60-1909-11e9-919b-ffe5949a18d2' ) ,
61+ path : getExistingMapPath ( '2c9c1f60-1909-11e9-919b-ffe5949a18d2' ) ,
6262 label : sampleDataLinkLabel ,
6363 icon : APP_ICON ,
6464 } ,
@@ -80,7 +80,7 @@ export class MapsPlugin implements Plugin {
8080
8181 home . sampleData . addAppLinksToSampleDataset ( 'flights' , [
8282 {
83- path : createMapPath ( '5dd88580-1906-11e9-919b-ffe5949a18d2' ) ,
83+ path : getExistingMapPath ( '5dd88580-1906-11e9-919b-ffe5949a18d2' ) ,
8484 label : sampleDataLinkLabel ,
8585 icon : APP_ICON ,
8686 } ,
@@ -101,7 +101,7 @@ export class MapsPlugin implements Plugin {
101101 home . sampleData . addSavedObjectsToSampleDataset ( 'logs' , getWebLogsSavedObjects ( ) ) ;
102102 home . sampleData . addAppLinksToSampleDataset ( 'logs' , [
103103 {
104- path : createMapPath ( 'de71f4f0-1902-11e9-919b-ffe5949a18d2' ) ,
104+ path : getExistingMapPath ( 'de71f4f0-1902-11e9-919b-ffe5949a18d2' ) ,
105105 label : sampleDataLinkLabel ,
106106 icon : APP_ICON ,
107107 } ,
0 commit comments