Clear uri when clearing publish

This commit is contained in:
Franco Montenegro 2021-02-24 17:33:22 -03:00 committed by Sean Yesmunt
parent c31161c41a
commit 0d2d64aca7
2 changed files with 2 additions and 0 deletions

1
dist/bundle.es.js vendored
View file

@ -5960,6 +5960,7 @@ const publishReducer = handleActions({
return _extends$c({}, state, data); return _extends$c({}, state, data);
}, },
[CLEAR_PUBLISH]: state => _extends$c({}, defaultState$4, { [CLEAR_PUBLISH]: state => _extends$c({}, defaultState$4, {
uri: undefined,
channel: state.channel, channel: state.channel,
bid: state.bid, bid: state.bid,
optimize: state.optimize, optimize: state.optimize,

View file

@ -85,6 +85,7 @@ export const publishReducer = handleActions(
}, },
[ACTIONS.CLEAR_PUBLISH]: (state: PublishState): PublishState => ({ [ACTIONS.CLEAR_PUBLISH]: (state: PublishState): PublishState => ({
...defaultState, ...defaultState,
uri: undefined,
channel: state.channel, channel: state.channel,
bid: state.bid, bid: state.bid,
optimize: state.optimize, optimize: state.optimize,