Skip to content

Commit

Permalink
moved to fetch action
Browse files Browse the repository at this point in the history
  • Loading branch information
AAfghahi committed Jun 30, 2021
1 parent 112cfc5 commit 3963ef7
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,6 @@ function dbReducer(
const trimmedState = {
...(state || {}),
};
if (!trimmedState.encrypted_extra) {
trimmedState.encrypted_extra = '';
}
let query = '';

switch (action.type) {
Expand Down Expand Up @@ -287,6 +284,7 @@ function dbReducer(

return {
...action.payload,
encrypted_extra: action.payload.encrypted_extra || '',
engine: action.payload.backend || trimmedState.engine,
configuration_method: action.payload.configuration_method,
extra_json: deserializeExtraJSON,
Expand Down

0 comments on commit 3963ef7

Please sign in to comment.