Skip to content

Commit

Permalink
fix: fixed enhance link for no files
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed Dec 5, 2023
1 parent 62e8e93 commit f961828
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config/Slate/Link/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ const LinkEditor = (props) => {
data={{ url: node?.data?.url || '', dataElement }}
theme={{}}
onChangeValue={(url, dataElement, item) => {
let enhanced_link_infos = {};
let enhanced_link_infos = null;
if (item && item.getObjSize !== '0 KB') {
enhanced_link_infos = {};
enhanced_link_infos['content-type'] = item.mime_type;
enhanced_link_infos.size = item.getObjSize;
}
Expand Down

0 comments on commit f961828

Please sign in to comment.