Skip to content
Snippets Groups Projects
Commit 80e366a5 authored by esikkala's avatar esikkala
Browse files

Fix update results

parent d361bea1
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ let Manuscripts = props => {
path={'/manuscripts/table'}
render={routeProps =>
<ResultTable
results={props.search.results}
resultClass='manuscripts'
columns={props.search.manuscriptTableColumns}
search={props.search}
......
......@@ -23,7 +23,7 @@ const getResults = (action$, state$) => action$.pipe(
mergeMap(([action, state]) => {
const requestUrl = `${apiUrl + action.resultClass}?${resultStateToUrl(state.search, state.facet)}`;
return ajax.getJSON(requestUrl).pipe(
map(response => updateResults({ response }))
map(response => updateResults({ data: response }))
);
})
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment