docs: update override price selection strategy documentation (#5438)

* docs: update override price selection strategy documentation

* fix eslint errors
This commit is contained in:
Shahed Nasser
2023-10-20 20:17:45 +03:00
committed by GitHub
parent 8bc902fb0f
commit 1a10822cae
540 changed files with 244366 additions and 18865 deletions
@@ -47,7 +47,7 @@ const ParameterTypesItems = ({
</>
) : undefined
}
expandable={parameter.children.length > 0}
expandable={parameter.children?.length > 0}
className={clsx(
getItemClassNames(false),
level < 3 && "!p-1",
@@ -100,7 +100,7 @@ const ParameterTypesItems = ({
{parameters.map((parameter, key) => {
return (
<>
{parameter.children.length > 0 && (
{parameter.children?.length > 0 && (
<Details
summary={getSummary(parameter, key)}
key={key}
@@ -115,7 +115,7 @@ const ParameterTypesItems = ({
)}
</Details>
)}
{parameter.children.length === 0 &&
{(parameter.children?.length || 0) === 0 &&
getSummary(parameter, key, false)}
</>
)