Skip to content

Commit

Permalink
presets: merge query when change language
Browse files Browse the repository at this point in the history
  • Loading branch information
molon committed Jul 30, 2024
1 parent 41fcbae commit 2a36f57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions presets/presets.go
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ func (b *Builder) RunSwitchLanguageFunc(ctx *web.EventContext) (r h.HTMLComponen
),
).Class("pa-0").Density(DensityCompact),
).Class("pa-0 ma-n4 mt-n6"),
).Attr("@click", web.Plaid().Query(queryName, supportLanguages[0].String()).Go()),
).Attr("@click", web.Plaid().MergeQuery(true).Query(queryName, supportLanguages[0].String()).Go()),
)
}

Expand All @@ -701,7 +701,7 @@ func (b *Builder) RunSwitchLanguageFunc(ctx *web.EventContext) (r h.HTMLComponen
VListItemTitle(
h.Div(h.Text(display.Self.Name(tag))),
),
).Attr("@click", web.Plaid().Query(queryName, tag.String()).Go()),
).Attr("@click", web.Plaid().MergeQuery(true).Query(queryName, tag.String()).Go()),
),
)
}
Expand Down

0 comments on commit 2a36f57

Please sign in to comment.