Skip to content

Fix: Update LibraryActionRow based on tab identity, not index#240

Merged
theovilardo merged 1 commit intomasterfrom
fix/library-action-row-reorder-bug
Oct 12, 2025
Merged

Fix: Update LibraryActionRow based on tab identity, not index#240
theovilardo merged 1 commit intomasterfrom
fix/library-action-row-reorder-bug

Conversation

@theovilardo
Copy link
Owner

The action buttons in the Library screen were not updating correctly when the tabs were reordered. This was because the logic in LibraryActionRow used a hardcoded page index (currentPage == 3) to determine which button to show.

This change corrects the logic to use the isPlaylistTab boolean, which is derived from the tab's title. This makes the component robust and ensures the correct actions are displayed for the selected tab, regardless of its position in the tab row.

The action buttons in the Library screen were not updating correctly when the tabs were reordered. This was because the logic in `LibraryActionRow` used a hardcoded page index (`currentPage == 3`) to determine which button to show.

This change corrects the logic to use the `isPlaylistTab` boolean, which is derived from the tab's title. This makes the component robust and ensures the correct actions are displayed for the selected tab, regardless of its position in the tab row.
@theovilardo theovilardo merged commit a937ec3 into master Oct 12, 2025
@theovilardo theovilardo deleted the fix/library-action-row-reorder-bug branch October 12, 2025 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant