I have a javascript query that generates a PDF. It was working perfectly fine for about 2 months. Two days ago it stopped generating properly. It seem like only the top part of my page generates .
here is the java script query.:
const postDayReport = `Post Day Report`;
const startDate = moment(dateRange1.value.start).format('YYMMDD');
const endDate = moment(dateRange1.value.end).format('YYMMDD');
let pdfName;
// Check if startDate and endDate are the same
if (startDate === endDate) {
pdfName = postDayReport + "_" + startDate + '-' + moment(dateRange1.value.start).format('ddd');
} else {
pdfName = postDayReport + " " + startDate + "-" + endDate;
}
// Download the page with the updated PDF name
utils.downloadPage(pdfName, { componentsToExclude: ["tabs1" ,"button1"] });
I will also attach an image of how it should look and how its generating now. No one has been changes to it. I have also tried refreshing the page and updating retool.