Skip to content

Commit d74b0bf

Browse files
authored
fix: only log document event when enableDocumentInternalLog is enabled (#7676)
1 parent 913924d commit d74b0bf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: frontend/appflowy_flutter/lib/plugins/document/application/document_bloc.dart

+4-2
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,10 @@ class DocumentBloc extends Bloc<DocumentEvent, DocumentState> {
271271
return;
272272
}
273273

274-
if (options.inMemoryUpdate && enableDocumentInternalLog) {
275-
Log.trace('skip transaction for in-memory update');
274+
if (options.inMemoryUpdate) {
275+
if (enableDocumentInternalLog) {
276+
Log.trace('skip transaction for in-memory update');
277+
}
276278
return;
277279
}
278280

0 commit comments

Comments
 (0)