This commit is contained in:
Timur Ercan
2023-01-24 19:16:12 +01:00
parent 138d28416f
commit 167122d58f

View File

@ -21,7 +21,7 @@ const DocumentsPage: NextPageWithLayout = (req, res) => {
}, []);
const getDocuments = async () => {
setLoading(true);
if (!documents.length) setLoading(true);
fetch("/api/documents", {
headers: {
"Content-Type": "application/json",