Kaynağa Gözat

fix lint error

Yuki Takei 4 yıl önce
ebeveyn
işleme
a4502eda35

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

@@ -177,9 +177,12 @@ export const PrivateLegacyPages = (props: Props): JSX.Element => {
   }, []);
   }, []);
 
 
   const convertMenuItemClickedHandler = useCallback(() => {
   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;
       return;
     }
     }