aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2022-03-27 12:24:38 +0300
committerHenry Jameson <me@hjkos.com>2022-03-27 12:24:38 +0300
commitdd4672dc9a5e059b5cdacc0d687e412ca6fd07a4 (patch)
treeedeacbfd42a822d86cbf79e7dde84646f5d1fb21 /src
parent9ac7046521d9cffcff1e2d846b1158d32c01ed85 (diff)
fix opening directly to filtering tab not working
Diffstat (limited to 'src')
-rw-r--r--src/components/settings_modal/settings_modal_content.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/settings_modal/settings_modal_content.js b/src/components/settings_modal/settings_modal_content.js
index deb77298..9ac0301f 100644
--- a/src/components/settings_modal/settings_modal_content.js
+++ b/src/components/settings_modal/settings_modal_content.js
@@ -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)