logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 4d15cbcbbd4b47fb37704f1408e5b8e6d9840758
parent 87311cff09fb19978a050b468a59126c4d13fd2f
Author: HJ <30-hj@users.noreply.git.pleroma.social>
Date:   Sun, 10 Apr 2022 06:32:41 +0000

Merge branch 'from/develop/tusooa/1158-hidden-tabs' into 'develop'

Fix tab switcher not working when some tabs hidden

Closes #1158

See merge request pleroma/pleroma-fe!1511

Diffstat:

Msrc/components/tab_switcher/tab_switcher.jsx2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/components/tab_switcher/tab_switcher.jsx b/src/components/tab_switcher/tab_switcher.jsx @@ -50,7 +50,7 @@ export default { activeIndex () { // In case of controlled component if (this.activeTab) { - return this.slots().findIndex(slot => this.activeTab === slot.props.key) + return this.slots().findIndex(slot => slot && slot.props && this.activeTab === slot.props.key) } else { return this.active }