Skip to content

Commit

Permalink
remove version when loading sample data
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmorris committed Aug 18, 2020
1 parent 4dfcf10 commit a0fc384
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export function createInstallRoute(
let createResults;
try {
createResults = await context.core.savedObjects.client.bulkCreate(
sampleDataset.savedObjects,
sampleDataset.savedObjects.map(({ version, ...savedObject }) => savedObject),
{ overwrite: true }
);
} catch (err) {
Expand Down

0 comments on commit a0fc384

Please sign in to comment.