fix(ui): drop unused nestedRepoSelection binding and stale review-flow dependency
This commit is contained in:
@@ -1678,7 +1678,7 @@ export const DiffView: React.FC<DiffViewProps> = ({
|
||||
} finally {
|
||||
setReviewFlowSubmitting(false);
|
||||
}
|
||||
}, [currentSessionId, effectiveDirectory, t]);
|
||||
}, [currentSessionId, rootDirectory, t]);
|
||||
|
||||
const scrollToFile = React.useCallback((path: string): boolean => {
|
||||
const node = fileSectionRefs.current.get(path);
|
||||
|
||||
@@ -257,7 +257,7 @@ export const GitView: React.FC<GitViewProps> = ({ isActive }) => {
|
||||
// one, `gitDirectory` is the effective repository all git data and actions
|
||||
// operate on. The hook owns probing, discovery, auto-select, and
|
||||
// stale-selection recovery; data fetching below keys off its result.
|
||||
const { rootIsGitRepo, gitDirectory, nestedRepos, nestedRepoSelection } = useNestedGitDirectory(
|
||||
const { rootIsGitRepo, gitDirectory, nestedRepos } = useNestedGitDirectory(
|
||||
currentDirectory ?? null,
|
||||
{ enabled: isActive },
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user