Leo 3 년 전
부모
커밋
97421b6620
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      components/novel/Toc/index.tsx

+ 1 - 1
components/novel/Toc/index.tsx

@@ -51,7 +51,7 @@ const Toc = (props: TocProps) => {
               href={`/novel/${item.uri}`}
               title={item.name}
               key={item.id}
-              onClick={() => onChangeSettings("")}
+              onClick={() => onChangeSettings && onChangeSettings("")}
             >
               <i>{i + 1}</i>
               <strong>{item.name}</strong>