Yuki Takei 4 anni fa
parent
commit
a4502eda35
1 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 5 2
      packages/app/src/components/PrivateLegacyPages.tsx

+ 5 - 2
packages/app/src/components/PrivateLegacyPages.tsx

@@ -177,9 +177,12 @@ export const PrivateLegacyPages = (props: Props): JSX.Element => {
   }, []);
 
   const convertMenuItemClickedHandler = useCallback(() => {
-    const instance = searchPageBaseRef.current;
+    if (data == null) {
+      return;
+    }
 
-    if (instance == null || data == null) {
+    const instance = searchPageBaseRef.current;
+    if (instance == null || instance.getSelectedPageIds == null) {
       return;
     }