Call completion if even it if we don't initialize the command. Fixes #3092

This commit is contained in:
Maurice Parker 2021-05-12 20:06:46 -05:00
parent 802dd503d6
commit 4523a28d67

View File

@ -27,6 +27,7 @@ final class MarkStatusCommand: UndoableCommand {
// Filter out articles that already have the desired status or can't be marked.
let articlesToMark = MarkStatusCommand.filteredArticles(initialArticles, statusKey, flag)
if articlesToMark.isEmpty {
completion?()
return nil
}
self.articles = Set(articlesToMark)