documents page rest fix

This commit is contained in:
tmshv committed 2020-02-21 22:26:26 +03:00
1 parent a28f7ccd84
commit 8f01c6e9d2
1 file changed
+1 -1
+1 -1
View File
@@ -126,7 +126,7 @@ const Page: NextPage<IProps> = props => (
export const unstable_getStaticProps = async (ctx) => {
const pageUrl = '/documents'
const res = await requestGet<IResponseItems<IDocument>>(createApiUrl('/api/files'), { items: [] })
const res = await requestGet<IResponseItems<IDocument>>(createApiUrl('/api/files'), null)
const files = res.items
const title = 'Документы'
const collections = getSorted(files)