Skip to content

Commit

Permalink
Fix TS issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sebelga committed Apr 3, 2020
1 parent 7ffe75b commit b3f616a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export const StepReview: React.FunctionComponent<StepProps> = ({ template, updat
);

const RequestTab = () => {
const includeTypeName = doMappingsHaveType(template.mappings);
const includeTypeName = doMappingsHaveType(template!.template.mappings);
const endpoint = `PUT _template/${name || '<templateName>'}${
includeTypeName ? '?include_type_name' : ''
}`;
Expand Down

0 comments on commit b3f616a

Please sign in to comment.