Skip to content

Commit

Permalink
Merge pull request #44 from CX-Box/feat/release-1.37.2
Browse files Browse the repository at this point in the history
release 1.37.2
  • Loading branch information
romadim committed Dec 4, 2023
2 parents 26f3172 + 19aac7c commit 5e4dcf9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@cxbox-ui/core",
"version": "1.37.1",
"version": "1.37.2",
"main": "cxbox-ui-core.js",
"exports": {
".": "./cxbox-ui-core.js",
Expand Down
4 changes: 3 additions & 1 deletion src/reducers/screen.ts
Expand Up @@ -412,6 +412,8 @@ export function screen(state = initialState, action: AnyAction, store: Store): S
}
}
case types.showViewPopup: {
const currentPage = state.bo.bc[action.payload.bcName]?.page ?? 1

return {
...state,
bo: {
Expand All @@ -420,7 +422,7 @@ export function screen(state = initialState, action: AnyAction, store: Store): S
...state.bo.bc,
[action.payload.bcName]: {
...state.bo.bc[action.payload.bcName],
page: 1,
page: action.payload.bcName === action.payload.calleeBCName ? currentPage : 1,
loading: action.payload.bcName !== action.payload.calleeBCName
}
}
Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Expand Up @@ -112,6 +112,7 @@ module.exports = (_env, options) => {
use: {
loader: 'ts-loader',
options: {
configFile: path.resolve(__dirname, './tsconfig.json'),
getCustomTransformers: function() {
return {
before: [
Expand Down

0 comments on commit 5e4dcf9

Please sign in to comment.