mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 18:56:54 +00:00
Remove setPageState in loadPage. Already occurs in performSearch()
`performSearch` will set PageState whether `update` is true or not, so this line here is not doing anything.
This commit is contained in:
1 parent
ef201409d9
commit
cd3e517b03
1 file changed
-4
@@ -109,10 +109,6 @@ const VaultPage = (props) => {
|
|||||||
const v3Value = v3Ref.current.checked != false;
|
const v3Value = v3Ref.current.checked != false;
|
||||||
const legacyValue = legacyRef.current.checked != false;
|
const legacyValue = legacyRef.current.checked != false;
|
||||||
|
|
||||||
if (update) {
|
|
||||||
setPageState(page);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Perform search with the latest input values, because state is not fast enough
|
// Perform search with the latest input values, because state is not fast enough
|
||||||
performSearch({ titleValue, authorValue, countValue, v3Value, legacyValue, page });
|
performSearch({ titleValue, authorValue, countValue, v3Value, legacyValue, page });
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user