mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-14 06:22:40 +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:
@@ -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