0
0
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:
Trevor Buckner
2024-09-04 00:18:35 -04:00
parent ef201409d9
commit cd3e517b03

View File

@@ -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 });