Adding notifications column
This commit is contained in:
1 parent
da2ef4d676
commit
38dd85daab
30 files changed
+512
-76
No files matched your search
@@ -2,7 +2,13 @@ import axios from 'axios';
|
||||
import LinkHeader from 'http-link-header';
|
||||
|
||||
export const getLinks = response => {
|
||||
return LinkHeader.parse(response.headers.link);
|
||||
const value = response.headers.link;
|
||||
|
||||
if (!value) {
|
||||
return { refs: [] };
|
||||
}
|
||||
|
||||
return LinkHeader.parse(value);
|
||||
};
|
||||
|
||||
export default getState => axios.create({
|
||||
|
||||
Reference in new issue
Block a user