mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-12 02:30:41 +09:00
remove useless code
This commit is contained in:
parent
8051dc1e9a
commit
0213632bc4
1 changed files with 1 additions and 2 deletions
|
@ -2094,10 +2094,9 @@ const EditorPage = observer(class EditorPage extends React.Component<Props, Stat
|
|||
|
||||
onLastClick (e: any) {
|
||||
const { rootId } = this.props;
|
||||
const root = blockStore.getLeaf(rootId, rootId);
|
||||
const readonly = this.isReadonly();
|
||||
|
||||
if (!root || readonly) {
|
||||
if (readonly) {
|
||||
return;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue