Skip to content

Commit

Permalink
ui: fix version store look-up
Browse files Browse the repository at this point in the history
  • Loading branch information
sevein committed Apr 6, 2020
1 parent 5234171 commit 89211a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const actions: ActionTree<RootState, RootState> = {

[LOOK_UP_VERSION]({ commit }) {
// TODO: hit a static asset?
EnduroCollectionClient.collectionList({cursor: '0'}).catch((response) => {
const v = response.headers.get('X-Enduro-Version');
EnduroCollectionClient.collectionListRaw({cursor: '0'}).then((response) => {
const v = response.raw.headers.get('X-Enduro-Version');
commit(SET_VERSION, v);
});
},
Expand Down

0 comments on commit 89211a0

Please sign in to comment.