From d054439df476a7654495aabd757af8fce6a3ba31 Mon Sep 17 00:00:00 2001 From: Mathias Mogensen <42929161+Xazin@users.noreply.github.com> Date: Tue, 3 Oct 2023 18:07:46 +0200 Subject: [PATCH] fix: provide default options for inline actions always (#3601) --- .../lib/plugins/inline_actions/handlers/date_reference.dart | 1 + .../lib/plugins/inline_actions/handlers/reminder_reference.dart | 1 + 2 files changed, 2 insertions(+) diff --git a/frontend/appflowy_flutter/lib/plugins/inline_actions/handlers/date_reference.dart b/frontend/appflowy_flutter/lib/plugins/inline_actions/handlers/date_reference.dart index 95243f8a65..9f84abec9a 100644 --- a/frontend/appflowy_flutter/lib/plugins/inline_actions/handlers/date_reference.dart +++ b/frontend/appflowy_flutter/lib/plugins/inline_actions/handlers/date_reference.dart @@ -66,6 +66,7 @@ class DateReferenceService { .toList(); if (options.isEmpty && _keywords.any((k) => search.startsWith(k))) { + _setOptions(); options = _allOptions; } } diff --git a/frontend/appflowy_flutter/lib/plugins/inline_actions/handlers/reminder_reference.dart b/frontend/appflowy_flutter/lib/plugins/inline_actions/handlers/reminder_reference.dart index c2ca8a7b8c..d022bca662 100644 --- a/frontend/appflowy_flutter/lib/plugins/inline_actions/handlers/reminder_reference.dart +++ b/frontend/appflowy_flutter/lib/plugins/inline_actions/handlers/reminder_reference.dart @@ -82,6 +82,7 @@ class ReminderReferenceService { .toList(); if (options.isEmpty && _keywords.any((k) => search.startsWith(k))) { + _setOptions(); options = _allOptions; } }