Publish: Make 'channel' persistent by not clearing it in CLEAR_PUBLISH
Users are annoyed by the constant reset to 'Anonymous'.
This commit is contained in:
parent
7df96d4767
commit
05b949d470
2 changed files with 2 additions and 0 deletions
1
dist/bundle.es.js
vendored
1
dist/bundle.es.js
vendored
|
@ -5619,6 +5619,7 @@ const publishReducer = handleActions({
|
|||
return _extends$c({}, state, data);
|
||||
},
|
||||
[CLEAR_PUBLISH]: state => _extends$c({}, defaultState$4, {
|
||||
channel: state.channel,
|
||||
bid: state.bid,
|
||||
optimize: state.optimize
|
||||
}),
|
||||
|
|
|
@ -83,6 +83,7 @@ export const publishReducer = handleActions(
|
|||
},
|
||||
[ACTIONS.CLEAR_PUBLISH]: (state: PublishState): PublishState => ({
|
||||
...defaultState,
|
||||
channel: state.channel,
|
||||
bid: state.bid,
|
||||
optimize: state.optimize,
|
||||
}),
|
||||
|
|
Loading…
Reference in a new issue