Duplicative method cleanup (#6431)
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import filter from "lodash/filter";
|
||||
import { computed } from "mobx";
|
||||
import { IntegrationService } from "@shared/types";
|
||||
import naturalSort from "@shared/utils/naturalSort";
|
||||
import RootStore from "~/stores/RootStore";
|
||||
import Store from "~/stores/base/Store";
|
||||
@@ -15,13 +13,6 @@ class IntegrationsStore extends Store<Integration> {
|
||||
get orderedData(): Integration[] {
|
||||
return naturalSort(Array.from(this.data.values()), "name");
|
||||
}
|
||||
|
||||
@computed
|
||||
get slackIntegrations(): Integration[] {
|
||||
return filter(this.orderedData, {
|
||||
service: IntegrationService.Slack,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export default IntegrationsStore;
|
||||
|
||||
Reference in New Issue
Block a user