Skip to content

Commit 3d0af26

Browse files
author
Sandeep Kumawat
committed
bug fix: Snapshot restore always restores index alias
Signed-off-by: Sandeep Kumawat <[email protected]>
1 parent 657a699 commit 3d0af26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/pages/Snapshots/components/RestoreSnapshotFlyout/RestoreSnapshotFlyout.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export class RestoreSnapshotFlyout extends MDSEnabledComponent<RestoreSnapshotPr
146146
include_global_state: snapshot?.include_global_state,
147147
rename_pattern: pattern,
148148
rename_replacement: renameIndices === add_prefix ? `${prefix}$1` : renameReplacement,
149-
include_aliases: snapshot?.restore_aliases ? snapshot.restore_aliases : true,
149+
include_aliases: snapshot?.restore_aliases != undefined ? snapshot.restore_aliases : true,
150150
partial: snapshot?.partial || false,
151151
};
152152
let repoError = "";
@@ -493,7 +493,7 @@ export class RestoreSnapshotFlyout extends MDSEnabledComponent<RestoreSnapshotPr
493493

494494
<SnapshotRestoreAdvancedOptions
495495
getIndexSettings={this.getIndexSettings}
496-
restoreAliases={String(_.get(snapshot, restore_aliases, false)) == "true"}
496+
restoreAliases={String(_.get(snapshot, restore_aliases, true)) == "true"}
497497
onRestoreAliasesToggle={this.onToggle}
498498
restoreClusterState={String(_.get(snapshot, include_global_state, false)) == "true"}
499499
onRestoreClusterStateToggle={this.onToggle}

0 commit comments

Comments
 (0)