From 9e83803f6c89389540b1d7802dd1282c4d0eb527 Mon Sep 17 00:00:00 2001 From: Eduardo Flores Date: Wed, 8 May 2024 11:54:07 -0700 Subject: [PATCH] fix(migration): load tasks regardless of migration result --- src/app.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/app.rs b/src/app.rs index d3552d6..a90b53a 100644 --- a/src/app.rs +++ b/src/app.rs @@ -262,13 +262,9 @@ impl Application for App { dialog_text_input: widget::Id::unique(), }; - let commands = vec![Command::perform( - TaskService::migrate(Self::APP_ID), - |result| match result { - Ok(_) => message::app(Message::FetchLists), - Err(_) => message::none(), - }, - )]; + let commands = vec![Command::perform(TaskService::migrate(Self::APP_ID), |_| { + message::app(Message::FetchLists) + })]; (app, Command::batch(commands)) }