diff --git a/src/short-urls/CreateShortUrl.js b/src/short-urls/CreateShortUrl.js index 971a34f9..59655469 100644 --- a/src/short-urls/CreateShortUrl.js +++ b/src/short-urls/CreateShortUrl.js @@ -71,8 +71,9 @@ export class CreateShortUrl extends React.Component { diff --git a/src/short-urls/reducers/shortUrlsList.js b/src/short-urls/reducers/shortUrlsList.js index 728d53b0..9d76e44c 100644 --- a/src/short-urls/reducers/shortUrlsList.js +++ b/src/short-urls/reducers/shortUrlsList.js @@ -1,5 +1,4 @@ import ShlinkApiClient from '../../api/ShlinkApiClient'; -import { curry } from 'ramda'; const LIST_SHORT_URLS_START = 'shlink/shortUrlsList/LIST_SHORT_URLS_START'; const LIST_SHORT_URLS_ERROR = 'shlink/shortUrlsList/LIST_SHORT_URLS_ERROR'; @@ -41,4 +40,4 @@ export const _listShortUrls = (ShlinkApiClient, params = {}) => async dispatch = dispatch({ type: LIST_SHORT_URLS_ERROR, params }); } }; -export const listShortUrls = curry(_listShortUrls)(ShlinkApiClient); +export const listShortUrls = (params = {}) => _listShortUrls(ShlinkApiClient, params);