feat(api-ref): show schema of a tag (#7297)

This commit is contained in:
Shahed Nasser
2024-05-10 21:07:35 +03:00
committed by GitHub
parent e960f10aba
commit 1a68f4602c
11 changed files with 368 additions and 77 deletions
@@ -145,7 +145,14 @@ export const reducer = (
if (i.path && parent?.path && i.path === parent?.path) {
return {
...i,
children: [...(i.children || []), ...items],
children:
indexPosition !== undefined
? [
...(i.children?.slice(0, indexPosition) || []),
...items,
...(i.children?.slice(indexPosition) || []),
]
: [...(i.children || []), ...items],
loaded: parent.changeLoaded ? true : i.loaded,
}
}