Remove unused teamId

This commit is contained in:
Tom Moor
2017-11-19 20:44:01 -08:00
parent 8f5869c48d
commit c0b2accb18
2 changed files with 5 additions and 6 deletions

View File

@ -157,6 +157,10 @@ const SwatchInset = styled(Flex)`
const StyledOutline = styled(Outline)`
padding: 5px;
strong {
font-weight: 500;
}
`;
const HexHash = styled.div`

View File

@ -10,7 +10,6 @@ import ErrorsStore from 'stores/ErrorsStore';
import UiStore from 'stores/UiStore';
type Options = {
teamId: string,
ui: UiStore,
};
@ -31,7 +30,6 @@ class CollectionsStore {
@observable isFetching: boolean = false;
client: ApiClient;
teamId: string;
errors: ErrorsStore;
ui: UiStore;
@ -95,9 +93,7 @@ class CollectionsStore {
this.isFetching = true;
try {
const res = await this.client.post('/collections.list', {
id: this.teamId,
});
const res = await this.client.post('/collections.list');
invariant(res && res.data, 'Collection list not available');
const { data } = res;
runInAction('CollectionsStore#fetch', () => {
@ -158,7 +154,6 @@ class CollectionsStore {
constructor(options: Options) {
this.client = client;
this.errors = stores.errors;
this.teamId = options.teamId;
this.ui = options.ui;
}
}