Fix error when no searchParams were provided

This commit is contained in:
Kimmo Puputti 2018-01-31 16:07:07 +02:00
parent 342f82f672
commit 61daa2e7e9

View file

@ -105,7 +105,7 @@ export const BreakdownMaybe = props => {
) : null;
};
const createListingLink = (listing, label, searchParams, className = '') => {
const createListingLink = (listing, label, searchParams = {}, className = '') => {
const listingLoaded = !!listing.id;
if (listingLoaded && !listing.attributes.deleted) {