mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-29 11:12:39 +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 legacyValue = legacyRef.current.checked != false;
|
||||
|
||||
if (update) {
|
||||
setPageState(page);
|
||||
}
|
||||
|
||||
// Perform search with the latest input values, because state is not fast enough
|
||||
performSearch({ titleValue, authorValue, countValue, v3Value, legacyValue, page });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user