We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d241625 commit 5d4068cCopy full SHA for 5d4068c
1 file changed
apps/roam/src/components/AdvancedNodeSearchDialog/dockedSearchSidebarStorage.ts
@@ -29,16 +29,7 @@ export const isRightSidebarOpen = (): boolean => {
29
};
30
31
export const getRoamSidebarWindows = async (): Promise<RoamSidebarWindow[]> => {
32
- const rightSidebar = window.roamAlphaAPI.ui.rightSidebar as {
33
- getWindows?: () => Promise<RoamSidebarWindow[]>;
34
- };
35
- if (!rightSidebar.getWindows) return [];
36
-
37
- try {
38
- return (await rightSidebar.getWindows()) ?? [];
39
- } catch {
40
- return [];
41
- }
+ return window.roamAlphaAPI.ui.rightSidebar.getWindows() ?? [];
42
43
44
const normalizeRegistryEntry = (
0 commit comments