Fixed a bug
This commit is contained in:
parent
5edc2d7f27
commit
2aab536a94
|
@ -28,7 +28,9 @@ export const ChroniclesList = ({
|
|||
currentSlug,
|
||||
title,
|
||||
}: Props): JSX.Element => {
|
||||
const { state: isOpen, toggleState: toggleOpen } = useBoolean(false);
|
||||
const { state: isOpen, toggleState: toggleOpen } = useBoolean(
|
||||
chronicles.some((chronicle) => chronicle.attributes?.slug === currentSlug)
|
||||
);
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
|
Loading…
Reference in New Issue