forked from srxl/akkoma-fe
fix opening directly to filtering tab not working
This commit is contained in:
parent
9ac7046521
commit
dd4672dc9a
1 changed files with 2 additions and 2 deletions
|
@ -63,8 +63,8 @@ const SettingsModalContent = {
|
|||
const targetTab = this.$store.state.interface.settingsModalTargetTab
|
||||
// We're being told to open in specific tab
|
||||
if (targetTab) {
|
||||
const tabIndex = this.$refs.tabSwitcher.$slots.default.findIndex(elm => {
|
||||
return elm.data && elm.data.attrs['data-tab-name'] === targetTab
|
||||
const tabIndex = this.$refs.tabSwitcher.$slots.default().findIndex(elm => {
|
||||
return elm.props && elm.props['data-tab-name'] === targetTab
|
||||
})
|
||||
if (tabIndex >= 0) {
|
||||
this.$refs.tabSwitcher.setTab(tabIndex)
|
||||
|
|
Loading…
Reference in a new issue