mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -05:00
Fix search icon only working when section expanded (#9596)
This commit is contained in:
@@ -45,7 +45,7 @@ export class BookTreeItem extends vscode.TreeItem {
|
||||
this.contextValue = 'savedBook';
|
||||
}
|
||||
} else {
|
||||
if (book.type === BookTreeItemType.Markdown && book.page.expand_sections) {
|
||||
if (book.page && book.page.sections && book.page.sections.length > 0) {
|
||||
this.contextValue = 'section';
|
||||
}
|
||||
this.setPageVariables();
|
||||
|
||||
Reference in New Issue
Block a user