Skip to content

Commit

Permalink
fix: attempted to change a read-only map field
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasXu0 committed Sep 4, 2024
1 parent 66d88d6 commit b5e68ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'package:appflowy/startup/startup.dart';
import 'package:appflowy/workspace/application/settings/application_data_storage.dart';
import 'package:appflowy_backend/dispatch/error.dart';
import 'package:appflowy_backend/log.dart';
import 'package:appflowy_editor/appflowy_editor.dart' show PlatformExtension;
import 'package:easy_localization/easy_localization.dart';
import 'package:flowy_infra/uuid.dart';
import 'package:path/path.dart' as p;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ class ReminderUpdate {
? scheduledAt!.isBefore(DateTime.now())
: a.isAck;

final meta = a.meta;
final meta = {...a.meta};
if (includeTime != a.includeTime) {
meta[ReminderMetaKeys.includeTime] = includeTime.toString();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ class _MToast extends StatelessWidget {
),
const HSpace(8.0),
],
hintText,
Expanded(child: hintText),
],
)
: hintText,
Expand Down

0 comments on commit b5e68ba

Please sign in to comment.