From 8f01c6e9d27d8c9581485d27820412e4a1080d72 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Fri, 21 Feb 2020 22:26:26 +0300 Subject: [PATCH] documents page rest fix --- pages/documents.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/documents.tsx b/pages/documents.tsx index 93e542a9..deed0f7b 100644 --- a/pages/documents.tsx +++ b/pages/documents.tsx @@ -126,7 +126,7 @@ const Page: NextPage = props => ( export const unstable_getStaticProps = async (ctx) => { const pageUrl = '/documents' - const res = await requestGet>(createApiUrl('/api/files'), { items: [] }) + const res = await requestGet>(createApiUrl('/api/files'), null) const files = res.items const title = 'Документы' const collections = getSorted(files)