Fixed tree related issues.

This commit is contained in:
Akshay Joshi
2024-09-16 10:09:28 +05:30
parent dd6f6cf1af
commit 53760dbf59
2 changed files with 4 additions and 2 deletions
@@ -611,7 +611,9 @@ export class FileTreeX extends React.Component<IFileTreeXProps> {
const scrollXPos = scrollX || 0;
const scrollYPos = scrollY || this.props.model.state.scrollOffset;
const div = this.wrapperRef.current.querySelector('div').querySelector('div') as HTMLDivElement;
div.scroll(scrollXPos, scrollYPos);
if (div) {
div.scroll(scrollXPos, scrollYPos);
}
};