Skip to content

Commit 8bcebe3

Browse files
committed
fix(editor): fix never import metadata in Quill Delta json document
1 parent d060020 commit 8bcebe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/shared/models/editor_document.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ final class EditorDocumentMetadata with EditorDocumentMetadataMappable {
5050
///
5151
/// If any data field is **valid**, current metadata is not empty.
5252
bool get isNotEmpty =>
53-
title != null && typeId != null && additionalOptions.isNotEmpty && price != null && perm != null;
53+
title != null || typeId != null || additionalOptions.isNotEmpty || price != null || perm != null;
5454

5555
/// Document version.
5656
final int version;

0 commit comments

Comments
 (0)