Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 05f4419

Browse files
committed
Remove read-only checks of find
1 parent 3dd13ca commit 05f4419

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/client/src/widgets/find.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export default class FindWidget extends NoteContextAwareWidget {
197197
const isReadOnly = await this.noteContext?.isReadOnly();
198198

199199
let selectedText = "";
200-
if (this.note?.type === "code" && this.noteContext && !isReadOnly) {
200+
if (this.note?.type === "code" && this.noteContext) {
201201
const codeEditor = await this.noteContext.getCodeEditor();
202202
selectedText = codeEditor.getSelectedText();
203203
} else {

0 commit comments

Comments
 (0)