1
0
Fork 0
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:
Andrew Simachev 2024-04-01 11:10:39 +02:00
parent 8051dc1e9a
commit 0213632bc4
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8

View file

@ -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;
};