瀏覽代碼

updata:textbook

xll 6 月之前
父節點
當前提交
3aba80f1d3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      projects/textbook/src/app/textbook/textbook.component.ts

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

@@ -223,7 +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) => {
+    list?.forEach((item: Parse.Object) => {
       // arr.add(item.get(filed))
       if (
         isDate ||