diff --git a/internal_packages/thread-list/lib/thread-list-quick-actions.cjsx b/internal_packages/thread-list/lib/thread-list-quick-actions.cjsx index ab0499a67..cf9a5b1e6 100644 --- a/internal_packages/thread-list/lib/thread-list-quick-actions.cjsx +++ b/internal_packages/thread-list/lib/thread-list-quick-actions.cjsx @@ -44,11 +44,10 @@ class ThreadListQuickActions extends React.Component return false _onTrash: (event) => - params = { - thread: @props.thread, - labelsToRemove: [CategoryStore.byId(@props.categoryId)], - labelsToAdd: [CategoryStore.getStandardCategory("trash")] - } + params = + thread: @props.thread, + labelsToRemove: [CategoryStore.byId(@props.categoryId)], + labelsToAdd: [CategoryStore.getStandardCategory("trash")] Actions.queueTask(new ChangeLabelsTask(params)) # Don't trigger the thread row click event.stopPropagation() diff --git a/src/flux/tasks/archive-thread-helper.coffee b/src/flux/tasks/archive-thread-helper.coffee index d12604003..62b60f3d3 100644 --- a/src/flux/tasks/archive-thread-helper.coffee +++ b/src/flux/tasks/archive-thread-helper.coffee @@ -3,6 +3,7 @@ FocusedCategoryStore = require '../stores/focused-category-store' ChangeLabelsTask = require './change-labels-task' ChangeFolderTask = require './change-folder-task' +Actions = require '../actions' NamespaceStore = require '../stores/namespace-store'