Skip to content
This repository has been archived by the owner on Aug 17, 2024. It is now read-only.

Commit

Permalink
🐛 fix proposals export
Browse files Browse the repository at this point in the history
  • Loading branch information
bpetetot committed Nov 1, 2020
1 parent 008c3f0 commit b82db9e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/store/reactions/proposals.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import firebase from 'firebase/app'
import omitBy from 'lodash/omitBy'
import isNil from 'lodash/isNil'

import { downloadFile } from 'helpers/dom'
import * as firebaseProposals from 'firebase/proposals'
Expand Down Expand Up @@ -33,9 +35,8 @@ export const exportProposals = async (action, store) => {

const token = await firebase.auth().currentUser.getIdToken()

// get proposal filters & sort from query params
const query = encodeURI(
Object.entries({ ...filters, output })
Object.entries({ ...omitBy(filters, isNil), output })
.map(([key, value]) => `${key}=${value}`)
.join('&'),
)
Expand Down

0 comments on commit b82db9e

Please sign in to comment.