Skip to content

Commit

Permalink
fix: issue with typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget committed Sep 25, 2024
1 parent f36eb20 commit 07882a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default function DBAccordion(props: DBAccordionProps) {

onUpdate(() => {
if (ref && state._initOpenIndexDone) {
if (props.initOpenIndex?.length > 0) {
if (props?.initOpenIndex && props.initOpenIndex?.length > 0) {
const childDetails = ref.getElementsByTagName('details');
if (childDetails) {
const initOpenIndex =
Expand Down

0 comments on commit 07882a6

Please sign in to comment.