Leo 3 жил өмнө
parent
commit
97421b6620

+ 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>