Skip to content

Commit 480de5b

Browse files
committed
remove replace: true
1 parent ff0c44e commit 480de5b

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

x-pack/solutions/observability/plugins/slo/public/pages/slos/components/common/sort_by_select.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,10 @@ export function SLOSortBy({ state, onStateChange, loading }: Props) {
3232
const sortBy = state.sort.by;
3333

3434
const handleChangeSortBy = ({ value, label }: { value: SortField; label: string }) => {
35-
onStateChange(
36-
{
37-
page: 0,
38-
sort: { by: value, direction: state.sort.direction },
39-
},
40-
{ replace: true }
41-
);
35+
onStateChange({
36+
page: 0,
37+
sort: { by: value, direction: state.sort.direction },
38+
});
4239
};
4340

4441
const sortByOptions: Option[] = [

x-pack/solutions/observability/plugins/slo/public/pages/slos/components/slo_list_group_by.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,10 @@ export function SloGroupBy({ onStateChange, state, loading }: Props) {
3737
settings && (settings.useAllRemoteClusters || settings.selectedRemoteClusters.length > 0);
3838

3939
const handleChangeGroupBy = (value: GroupByField) => {
40-
onStateChange(
41-
{
42-
page: 0,
43-
groupBy: value,
44-
},
45-
{ replace: true }
46-
);
40+
onStateChange({
41+
page: 0,
42+
groupBy: value,
43+
});
4744
};
4845
const groupByOptions: Option[] = [
4946
{

0 commit comments

Comments
 (0)