Skip to content

Commit

Permalink
fix: removes page urlparam when page 1 is selected in the paginator (…
Browse files Browse the repository at this point in the history
…MWPW-128865)
  • Loading branch information
cmiqueo committed Apr 3, 2023
1 parent cddf166 commit eff4774
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/app.css

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions dist/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Chimera UI Libraries - Build 3/31/2023, 16:07:02
* Chimera UI Libraries - Build 4/3/2023, 09:09:22
*
*/
/******/ (function(modules) { // webpackBootstrap
Expand Down Expand Up @@ -7118,8 +7118,7 @@ var Container = function Container(props) {
* @returns {Void} - an updated url page
*/
(0, _react.useEffect)(function () {
if (currentPage === 1) return;
setUrlState('page', currentPage);
setUrlState('page', currentPage === 1 ? '' : currentPage);
}, [currentPage]);

var removeEmptyFilters = function removeEmptyFilters(allFilters, cardsFromJson) {
Expand Down
4 changes: 2 additions & 2 deletions dist/main.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/main.source.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions react/src/js/components/Consonant/Container/Container.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -671,8 +671,7 @@ const Container = (props) => {
* @returns {Void} - an updated url page
*/
useEffect(() => {
if (currentPage === 1) return;
setUrlState('page', currentPage);
setUrlState('page', currentPage === 1 ? '' : currentPage);
}, [currentPage]);

const removeEmptyFilters = (allFilters, cardsFromJson) => {
Expand Down

0 comments on commit eff4774

Please sign in to comment.