({ teamId }: { teamId: string })
| 1063 | } |
| 1064 | |
| 1065 | public async deleteCurrentTeamStoreMethod({ teamId }: { teamId: string }) { |
| 1066 | await deleteCurrentTeamApiMethod({ |
| 1067 | socketId: (this.store.socket && this.store.socket.id) || null, |
| 1068 | teamId, |
| 1069 | }); |
| 1070 | |
| 1071 | const defaultTeam = this.teamsForUser.find((t) => t.teamId === this.defaultTeamId); |
| 1072 | |
| 1073 | runInAction(() => { |
| 1074 | this.setCurrentTeamStoreMethod(defaultTeam.teamId); |
| 1075 | this.removeTeamFromLocalCacheStoreMethod(teamId, defaultTeam.teamId); |
| 1076 | }); |
| 1077 | } |
| 1078 | |
| 1079 | public async getListOfInvoicesForAccountStoreMethod(teamId: string) { |
| 1080 | try { |
no test coverage detected