build fix

This commit is contained in:
2022-02-25 09:10:39 +00:00
parent a78c8f92a8
commit fbf0f48f7f
3 changed files with 10 additions and 3 deletions
+8 -1
View File
@@ -341,7 +341,14 @@ const DocumentDetails = (props) => {
return Promise.all(historyArr);
};
const searchDocumentResultsObj = docDetailsObj();
}, [incidentid, setDocumentHistory, setDocumentDetails, selectedOption]);
}, [
incidentid,
setDocumentHistory,
setDocumentDetails,
selectedOption,
fieldSortState,
orderByState,
]);
const getDocumentResults = (pageNumber, orderBy, fieldSort) => {
getSearchDocumentDetailsPaged(
+1 -1
View File
@@ -353,7 +353,7 @@ const DNSSearchResults = (props) => {
} else {
setSearchLoaded(true);
}
}, [selectedOption]);
}, [selectedOption, fieldSortState, orderByState, searchLoaded]);
return (
<>
<div className="govuk-grid-row">
+1 -1
View File
@@ -597,7 +597,7 @@ const SearchResults = (props) => {
} else {
setSearchLoaded(true);
}
}, [selectedOption]);
}, [selectedOption, fieldSortState, orderByState, searchLoaded]);
// console.log(
// "page is here ",
// currentPage,