Leo 3 anni fa
parent
commit
97421b6620
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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>