refactor_window_interface_and_update_smart_notes_access

This commit is contained in:
Brian Joseph Petro 2025-05-30 11:12:13 -04:00
parent 904840d27c
commit 2f4936e488

View file

@ -53,7 +53,7 @@ interface PluginSettings {
declare global {
interface Window {
SmartSearch: any;
smart_env: any;
}
}
@ -328,7 +328,7 @@ class ScGraphItemView extends ItemView {
//@ts-ignore
get env() { return window.smart_env; }
get smartNotes() { return window.SmartSearch?.main?.env?.smart_sources?.items; }
get smartNotes() { return window.smart_env?.smart_sources?.items; }
async onOpen() {