diff options
| author | Henry Jameson <me@hjkos.com> | 2022-03-27 12:24:38 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-03-27 12:24:38 +0300 |
| commit | dd4672dc9a5e059b5cdacc0d687e412ca6fd07a4 (patch) | |
| tree | edeacbfd42a822d86cbf79e7dde84646f5d1fb21 | |
| parent | 9ac7046521d9cffcff1e2d846b1158d32c01ed85 (diff) | |
fix opening directly to filtering tab not working
| -rw-r--r-- | src/components/settings_modal/settings_modal_content.js | 4 |
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) |
