Skip to content

Commit

Permalink
Bug Fixes in Snapshot Policy: Schedule Editing and Index Expression D…
Browse files Browse the repository at this point in the history
…isplay

Signed-off-by: Sandeep Kumawat <[email protected]>
  • Loading branch information
Sandeep Kumawat committed Nov 6, 2024
1 parent 2d7c80b commit afcd0fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,20 +88,20 @@ const CronSchedule = ({

function onDayOfWeekChange(dayOfWeek: string) {
setWeek(dayOfWeek);
// changeCron({ dayOfWeek });
changeCron({ dayOfWeek });
}

function onDayOfMonthChange(dayOfMonth: number) {
setMonth(dayOfMonth);
// changeCron({ dayOfMonth });
changeCron({ dayOfMonth });
}

function onStartTimeChange(date: moment.Moment) {
const minute = date.minute();
const hour = date.hour();
setMinute(minute);
setHour(hour);
// changeCron({ minute, hour });
changeCron({ minute, hour });
}

function onTypeChange(e: ChangeEvent<HTMLSelectElement>) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ export class CreateSnapshotPolicy extends MDSEnabledComponent<CreateSMPolicyProp
const selectedIndexOptions = [...this.state.selectedIndexOptions, newOption];
this.setState({
selectedIndexOptions: selectedIndexOptions,
policy: this.setPolicyHelper("snapshot_config.indices", selectedIndexOptions.toString()),
policy: this.setPolicyHelper("snapshot_config.indices", selectedIndexOptions.map((option) => option.label).join(", ")),
});
};

Expand Down

0 comments on commit afcd0fe

Please sign in to comment.