diff --git a/src/hooks/useExpandable/helpers.js b/src/hooks/useExpandable/helpers.js index b7f77e0..b463459 100644 --- a/src/hooks/useExpandable/helpers.js +++ b/src/hooks/useExpandable/helpers.js @@ -2,10 +2,14 @@ import React from 'react'; const detailsRowForRule = (item, DetailsComponent, colSpan, runningIndex) => ({ parent: runningIndex() - 1, - props: { - ...item.props, - 'aria-setsize': 0, - }, + props: (() => { + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const { 'aria-level': _ariaLevel, ...detailsRowProps } = item.props || {}; + return { + ...detailsRowProps, + 'aria-setsize': 0, + }; + })(), cells: [ { title: ,