Skip to content

Commit

Permalink
fix sentry crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3orblade committed Apr 26, 2024
1 parent fd87c84 commit 236c4c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts/component/block/dataview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ const BlockDataview = observer(class BlockDataview extends React.Component<Props

if (isNew && this.refControls && this.refControls.refHead) {
const ref = this.refControls.refHead;
const l = item.name.length;
const l = String(item.name || '').length;

ref.setValue(item.name);
ref.setRange({ from: l, to: l });
Expand Down

0 comments on commit 236c4c3

Please sign in to comment.