Quellcode durchsuchen

fix: textbook list forEach null

ryanemax vor 6 Monaten
Ursprung
Commit
b554f44c2b
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      projects/textbook/src/app/textbook/textbook.component.ts

+ 1 - 0
projects/textbook/src/app/textbook/textbook.component.ts

@@ -223,6 +223,7 @@ export class TextbookComponent implements OnInit {
   fromatFiled(list: Array<Parse.Object>, filed: string): string {
     let arr: Array<string | null> = [];
     let isDate = false;
+    // 监测空值
     list?.forEach((item: Parse.Object) => {
       // arr.add(item.get(filed))
       if (