mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 23:27:09 +00:00
Fix error when adding to list
This commit is contained in:
@@ -302,7 +302,7 @@ function useToggles() {
|
||||
}
|
||||
|
||||
const isToggled = (key: string) => {
|
||||
return toggleState.get(key) ?? toggleAll
|
||||
return toggleState?.get(key) ?? toggleAll
|
||||
}
|
||||
|
||||
return { expand, collapse, isToggled }
|
||||
|
||||
Reference in New Issue
Block a user