Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienMora committed Aug 20, 2024
1 parent c7b422d commit 1c33bb6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/react/components/accordion/item/AccordionItem.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useEffect, useRef, useState } from "react"
import shortid from "shortid"
import { AccordionItemProps } from "./AccordionItemProps"
import { is } from "@/services"
import clsx from "clsx"
import { hashClass } from "@/helpers"
import { useTrilogyContext } from "@/context"
Expand Down Expand Up @@ -48,7 +47,7 @@ const AccordionItem = ({
return
}
const { floor, abs } = Math
const firstChild = e.children[1].firstChild as HTMLElement
const firstChild = e?.children[1]?.firstChild as HTMLElement
const expandedInactive = floor(
abs(e.clientHeight + firstChild?.clientHeight)
).toString()
Expand Down

0 comments on commit 1c33bb6

Please sign in to comment.