@apify/docs-theme 1.0.136 → 1.0.137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ export default function MDXDetails(props) {
|
|
|
6
6
|
// Split summary item from the rest to pass it as a separate prop to the
|
|
7
7
|
// Details theme component
|
|
8
8
|
const summary = items.find(
|
|
9
|
-
(item) => React.isValidElement(item) && item.
|
|
9
|
+
(item) => React.isValidElement(item) && item.type === 'summary',
|
|
10
10
|
);
|
|
11
11
|
const children = <>{items.filter((item) => item !== summary)}</>;
|
|
12
12
|
return (
|