logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: dd4672dc9a5e059b5cdacc0d687e412ca6fd07a4
parent 9ac7046521d9cffcff1e2d846b1158d32c01ed85
Author: Henry Jameson <me@hjkos.com>
Date:   Sun, 27 Mar 2022 12:24:38 +0300

fix opening directly to filtering tab not working

Diffstat:

Msrc/components/settings_modal/settings_modal_content.js4++--
1 file 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 @@ -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)