Skip to content

Commit

Permalink
fix(migration): load tasks regardless of migration result
Browse files Browse the repository at this point in the history
  • Loading branch information
edfloreshz committed May 8, 2024
1 parent 1f207c6 commit 9e83803
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 9e83803

Please sign in to comment.