Skip to content

Commit

Permalink
fix: Use new metadata to check if show or not the size in edit (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk authored Jan 11, 2024
1 parent 15d8b8f commit 0b1668e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/Slate/Link/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const LinkEditor = (props) => {
theme={{}}
onChangeValue={(url, dataElement, item) => {
let enhanced_link_infos = null;
if (item && item.getObjSize !== '0 KB') {
if (item && item.enhanced_links_enabled) {
enhanced_link_infos = {};
enhanced_link_infos['content-type'] = item.mime_type;
enhanced_link_infos.size = item.getObjSize;
Expand Down

0 comments on commit 0b1668e

Please sign in to comment.