mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-07 12:29:50 +08:00
fix: update type
This commit is contained in:
@@ -22,5 +22,5 @@ export type EditorHandlers = {
|
||||
unFavoritePage: (pageId: string) => void;
|
||||
toggleFavoritePage: (pageId: string) => void;
|
||||
permanentlyDeletePage: (pageId: string) => void;
|
||||
search: (query: QueryContent) => Map<string, string>;
|
||||
search: (query: QueryContent) => Map<string, string | undefined>;
|
||||
};
|
||||
|
||||
@@ -50,9 +50,7 @@ export const useEditorHandler = (workspace?: Workspace): EditorHandlers => {
|
||||
}
|
||||
},
|
||||
search: (query: QueryContent) => {
|
||||
if (query) {
|
||||
return workspace!.search(query);
|
||||
}
|
||||
return workspace!.search(query);
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user