mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-08-01 16:41:53 +00:00
Fixed coding styles
This commit is contained in:
@@ -33,9 +33,9 @@ const initialState = {
|
||||
const setPropFromActionOnMatchingShortUrl = (prop) => (state, { shortCode, domain, [prop]: propValue }) => assocPath(
|
||||
[ 'shortUrls', 'data' ],
|
||||
state.shortUrls.data.map(
|
||||
(shortUrl) => shortUrlMatches(shortUrl, shortCode, domain) ? assoc(prop, propValue, shortUrl) : shortUrl
|
||||
(shortUrl) => shortUrlMatches(shortUrl, shortCode, domain) ? assoc(prop, propValue, shortUrl) : shortUrl,
|
||||
),
|
||||
state
|
||||
state,
|
||||
);
|
||||
|
||||
export default handleActions({
|
||||
@@ -55,9 +55,9 @@ export default handleActions({
|
||||
state.shortUrls && state.shortUrls.data && state.shortUrls.data.map(
|
||||
(shortUrl) => shortUrlMatches(shortUrl, shortCode, domain)
|
||||
? assoc('visitsCount', visitsCount, shortUrl)
|
||||
: shortUrl
|
||||
: shortUrl,
|
||||
),
|
||||
state
|
||||
state,
|
||||
),
|
||||
}, initialState);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user