Leo 3 tahun lalu
induk
melakukan
97421b6620
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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>