We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18aa081 commit 1dc6765Copy full SHA for 1dc6765
pages/requests/[uuid].js
@@ -55,12 +55,13 @@ const Request = () => {
55
}
56
57
getPOsAsync()
58
- }, [allPOs]);
+ }, [allPOs, isPOError]);
59
60
console.log(allPOs)
61
const isLoading = isLoadingRequest || isLoadingSOWs || isLoadingFiles || isLoadingMessages || isPOLoading
62
const isError = isRequestError || isSOWError || isFilesError|| isMessagesError
63
- const documents = (allSOWs) ? [...allSOWs] : []
+ let documents = (allSOWs) ? [...allSOWs] : []
64
+ allPOs ? (documents = [...documents, ...allPOs]) : (documents = [...documents])
65
66
if (isLoading) return <Loading wrapperClass='item-page mt-5' />
67
0 commit comments