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)` const StyledOutline = styled(Outline)`
padding: 5px; padding: 5px;
strong {
font-weight: 500;
}
`; `;
const HexHash = styled.div` const HexHash = styled.div`

View File

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