From b9fdaec8b748004221b163f1603c7e5ce3e99800 Mon Sep 17 00:00:00 2001 From: Caleb Date: Tue, 24 Oct 2017 19:37:34 -0600 Subject: [PATCH] Fix history warning when opening entry. When clicking on a entry in the listing, a console error would be logged by `history` (react-router): "Hash history cannot push state; it is ignored". This was caused because using `bind` in the click handler caused the return value to be passed to the `history.push` as the second param. This was ignored in react-router v2, but gives a warning in v4. --- src/components/EntryListing/EntryListing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/EntryListing/EntryListing.js b/src/components/EntryListing/EntryListing.js index 5009d010fe24..b0c12b706731 100644 --- a/src/components/EntryListing/EntryListing.js +++ b/src/components/EntryListing/EntryListing.js @@ -48,7 +48,7 @@ export default class EntryListing extends React.Component { return ( history.push(path)} // eslint-disable-line className="nc-entryListing-card" > { image &&