gotta try this on live.

This commit is contained in:
Jason Schwarzenberger
2020-12-02 13:22:47 +13:00
parent 32f1455bbb
commit 59c6f17e67
6 changed files with 17 additions and 13 deletions

View File

@@ -24,7 +24,10 @@ class Results extends React.Component {
const signal = this.controller.signal;
const search = this.props.location.search;
fetch('/api/search' + search, { method: 'get', signal: signal })
const params = new URLSearchParams(search);
params.set('skip', params.get('skip') || 0);
params.set('limit', params.get('limit') || 20);
fetch('/api/search?' + params.toString(), { method: 'get', signal: signal })
.then(res => res.json())
.then(
(result) => {