浏览代码

fix: change to url error

ascarbek 2 年之前
父节点
当前提交
43cafdd524
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      frontend/appflowy_tauri/src/appflowy_app/components/board/BoardUrlCell.tsx

+ 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>
     </>
   );