disable pagination input if skip is manually entered in the url

This commit is contained in:
NikolaBorislavovHristov 2019-12-06 16:17:10 +02:00
parent 95ab541c81
commit 67334bd073

View file

@ -149,7 +149,7 @@ const mapSelectableInputs = (discover) => {
}; };
return { title, options, selected, renderLabelText, onSelect }; return { title, options, selected, renderLabelText, onSelect };
}); });
const paginationInput = discover.selectable.has_prev_page || discover.selectable.has_next_page || selectedCatalogRequest.path.extra.some(([name]) => name === 'skip') ? const paginationInput = discover.selectable.has_prev_page || discover.selectable.has_next_page ?
{ {
label: String(requestedPage), label: String(requestedPage),
onSelect: (event) => { onSelect: (event) => {