mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
fix replaceQueryTypeToCurrentTab
This commit is contained in:
parent
907da2a07b
commit
d368798000
@ -128,8 +128,8 @@ export class PagePanelWithNavMenu extends React.Component {
|
||||
})
|
||||
}
|
||||
|
||||
replaceQueryTypeToCurrentTab = () => {
|
||||
app.history.replace(`${window.location.pathname}?type=${this.state.activeTab}`)
|
||||
replaceQueryTypeToCurrentTab = (key) => {
|
||||
app.history.replace(`${window.location.pathname}?type=${key ?? this.state.activeTab}`)
|
||||
}
|
||||
|
||||
tabChange = async (key) => {
|
||||
@ -140,7 +140,7 @@ export class PagePanelWithNavMenu extends React.Component {
|
||||
await this.setState({ activeTab: key })
|
||||
|
||||
if (this.props.useSetQueryType) {
|
||||
this.replaceQueryTypeToCurrentTab()
|
||||
this.replaceQueryTypeToCurrentTab(key)
|
||||
}
|
||||
|
||||
if (this.props.onTabChange) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user