Skip to content

Commit

Permalink
do not change combinedFields on reset
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Sep 18, 2020
1 parent 22ac2a1 commit 4a21384
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,9 @@ function getDefaultState(state, results) {
? JSON.stringify(DEFAULT_INDEX_SETTINGS, null, 2)
: state.indexSettingsString;

const combinedFields = getDefaultCombinedFields(results);
const combinedFields = state.combinedFields.length
? state.combinedFields
: getDefaultCombinedFields(results);

const mappingsString =
state.mappingsString === ''
Expand Down

0 comments on commit 4a21384

Please sign in to comment.