mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Fix no books currently selected error in viewlet (#11269)
* Fix no books currently selected error * check sections undefined vs length
This commit is contained in:
@@ -347,7 +347,7 @@ export class BookTreeViewProvider implements vscode.TreeDataProvider<BookTreeIte
|
|||||||
|
|
||||||
public async searchJupyterBooks(treeItem?: BookTreeItem): Promise<void> {
|
public async searchJupyterBooks(treeItem?: BookTreeItem): Promise<void> {
|
||||||
let folderToSearch: string;
|
let folderToSearch: string;
|
||||||
if (treeItem && treeItem.book.type !== BookTreeItemType.Notebook) {
|
if (treeItem && treeItem.sections !== undefined) {
|
||||||
if (treeItem.uri) {
|
if (treeItem.uri) {
|
||||||
folderToSearch = path.join(treeItem.root, Content, path.dirname(treeItem.uri));
|
folderToSearch = path.join(treeItem.root, Content, path.dirname(treeItem.uri));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user