mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-24 08:04:11 +08:00
fix(mail-rules): Prevent from adding locked categories
This commit is contained in:
parent
9dc53ee1bd
commit
50296ab2d6
1 changed files with 2 additions and 0 deletions
|
@ -89,6 +89,8 @@ module.exports =
|
|||
CategoryNamesObservable = NylasObservables.Categories
|
||||
.forAccount(account)
|
||||
.sort()
|
||||
.map (cats) ->
|
||||
cats.filter (cat) -> not cat.isLockedCategory()
|
||||
.map (cats) ->
|
||||
cats.map (cat) ->
|
||||
name: cat.displayName || cat.name
|
||||
|
|
Loading…
Reference in a new issue