diff --git a/webpack/components/TemplateSyncResult/components/SyncedTemplate/helpers.js b/webpack/components/TemplateSyncResult/components/SyncedTemplate/helpers.js index e0d401c3..a0f5c246 100644 --- a/webpack/components/TemplateSyncResult/components/SyncedTemplate/helpers.js +++ b/webpack/components/TemplateSyncResult/components/SyncedTemplate/helpers.js @@ -7,7 +7,8 @@ import EmptyInfoItem from './EmptyInfoItem'; import StringInfoItem from './StringInfoItem'; import LinkInfoItem from './LinkInfoItem'; -export const itemIteratorId = (template, attr) => `${template.name}-${attr}`; +export const itemIteratorId = (template, attr) => + `${template.templateFile}-${attr}`; export const additionalInfo = (template, editPath) => { const infoAttrs = [ @@ -115,8 +116,8 @@ export const templateErrors = template => { const aggregatedErrors = template => { const err = { ...template.errors } || {}; - if (template.additional_errors) { - err.additional = template.additional_errors; + if (template.additionalErrors) { + err.additional = template.additionalErrors; } return err; diff --git a/webpack/components/TemplateSyncResult/components/__tests__/__snapshots__/SyncedTemplate.test.js.snap b/webpack/components/TemplateSyncResult/components/__tests__/__snapshots__/SyncedTemplate.test.js.snap index a07b71c7..c43edd85 100644 --- a/webpack/components/TemplateSyncResult/components/__tests__/__snapshots__/SyncedTemplate.test.js.snap +++ b/webpack/components/TemplateSyncResult/components/__tests__/__snapshots__/SyncedTemplate.test.js.snap @@ -86,7 +86,7 @@ exports[`SyncedTemplate should render template with invalid metadata 1`] = ` initExpanded={false} leftContent={ @@ -96,9 +96,13 @@ exports[`SyncedTemplate should render template with invalid metadata 1`] = ` onExpandClose={[Function]} stacked={true} > - - There were no errors. - + `; @@ -265,7 +269,7 @@ exports[`SyncedTemplate should render template with validation errors 1`] = ` >