xy 1 тиждень тому
батько
коміт
8cf33ba8f3

+ 1 - 1
yudao-ui-admin-vue3/src/components/DynamicReport/SpreadViewer.vue

@@ -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,