Updates for audatex claims & mapa/mash calculations IO-718
This commit is contained in:
@@ -42,7 +42,11 @@ export default async function RenderTemplate(
|
||||
try {
|
||||
const render = await jsreport.renderAsync(reportRequest);
|
||||
if (!renderAsHtml) {
|
||||
render.download(Templates[templateObject.name].title || "");
|
||||
render.download(
|
||||
(Templates[templateObject.name] &&
|
||||
Templates[templateObject.name].title) ||
|
||||
""
|
||||
);
|
||||
} else {
|
||||
return new Promise((resolve, reject) => {
|
||||
resolve(render.toString());
|
||||
|
||||
@@ -378,3 +378,13 @@ export const TemplateList = (type, context) => {
|
||||
: {}),
|
||||
};
|
||||
};
|
||||
|
||||
function getComponentPath(formItem) {
|
||||
const { type } = formItem;
|
||||
switch (type) {
|
||||
case "checkbox":
|
||||
return "/components/checkbox";
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user