Skip to content

Commit

Permalink
JS-5397: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3orblade committed Sep 17, 2024
1 parent b0d225c commit e731ce4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/ts/component/block/dataview/cell/object.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,8 @@ const CellObject = observer(class CellObject extends React.Component<I.Cell, Sta
};

let value = this.getItems();

const length = value.length;

if (arrayLimit) {
value = value.slice(0, arrayLimit);
if (length > arrayLimit) {
cn.push('overLimit');
};
};

let content = null;

if (isEditing) {
content = (
<div id="value" onClick={this.focus}>
Expand Down Expand Up @@ -111,7 +102,16 @@ const CellObject = observer(class CellObject extends React.Component<I.Cell, Sta
</div>
);
} else {
if (!value.length) {
const length = value.length;

if (arrayLimit) {
value = value.slice(0, arrayLimit);
if (length > arrayLimit) {
cn.push('overLimit');
};
};

if (!length) {
content = <div className="empty">{placeholder}</div>;
} else {
content = (
Expand Down

0 comments on commit e731ce4

Please sign in to comment.