Fixed Google Photo import

This commit is contained in:
benweet 2018-01-18 21:51:14 +00:00
parent dfb0d0c382
commit 174902d58d

View File

@ -38,8 +38,9 @@ export default modalTemplate({
googlePhotosTokens() { googlePhotosTokens() {
const googleTokens = this.$store.getters['data/googleTokens']; const googleTokens = this.$store.getters['data/googleTokens'];
return Object.entries(googleTokens) return Object.entries(googleTokens)
.filter(([, token]) => token.isPhotos) .map(([, token]) => token)
.sort(([, token1], [, token2]) => token1.name.localeCompare(token2.name)); .filter(token => token.isPhotos)
.sort((token1, token2) => token1.name.localeCompare(token2.name));
}, },
}, },
methods: { methods: {