Przeglądaj źródła

fix: change to url error

ascarbek 2 lat temu
rodzic
commit
43cafdd524

+ 2 - 2
frontend/appflowy_tauri/src/appflowy_app/components/board/BoardUrlCell.tsx

@@ -17,8 +17,8 @@ export const BoardUrlCell = ({
 
   return (
     <>
-      <a className={'text-main-accent hover:underline'} href={(data as URLCellDataPB).url || ''} target={'_blank'}>
-        {(data as URLCellDataPB).content || ''}
+      <a className={'text-main-accent hover:underline'} href={(data as URLCellDataPB)?.url || ''} target={'_blank'}>
+        {(data as URLCellDataPB)?.content || ''}
       </a>
     </>
   );