@@ -376,7 +376,7 @@ const openPdf = async () => {
const rules = []
previewSpread.sheets.forEach((sheet) => {
sheet.conditionalFormats.getRules().forEach(rule => {
- if (rule.condition().formula() == 'TRUE') {
+ if (rule.condition() && rule.condition().formula() == 'TRUE') {
console.log(rule)
rules.push({
sheet,