|
|
@ -39,8 +39,8 @@ import type { CommitsView } from './commitsView'; |
|
|
|
import type { ContributorsView } from './contributorsView'; |
|
|
|
import type { FileHistoryView } from './fileHistoryView'; |
|
|
|
import type { LineHistoryView } from './lineHistoryView'; |
|
|
|
import type { ViewNode } from './nodes/viewNode'; |
|
|
|
import { PageableViewNode } from './nodes/viewNode'; |
|
|
|
import type { PageableViewNode, ViewNode } from './nodes/viewNode'; |
|
|
|
import { isPageableViewNode } from './nodes/viewNode'; |
|
|
|
import type { RemotesView } from './remotesView'; |
|
|
|
import type { RepositoriesView } from './repositoriesView'; |
|
|
|
import type { SearchAndCompareView } from './searchAndCompareView'; |
|
|
@ -449,11 +449,11 @@ export abstract class ViewBase< |
|
|
|
children = await node.getChildren(); |
|
|
|
if (children.length === 0) continue; |
|
|
|
|
|
|
|
while (node != null && !PageableViewNode.is(node)) { |
|
|
|
while (node != null && !isPageableViewNode(node)) { |
|
|
|
node = await node.getSplattedChild?.(); |
|
|
|
} |
|
|
|
|
|
|
|
if (node != null && PageableViewNode.is(node)) { |
|
|
|
if (node != null && isPageableViewNode(node)) { |
|
|
|
let child = children.find(predicate); |
|
|
|
if (child != null) return child; |
|
|
|
|
|
|
|