Skip to content

table view: fix default sorting#1551

Merged
lyubov-voloshko merged 1 commit intomainfrom
fix-sorting
Feb 2, 2026
Merged

table view: fix default sorting#1551
lyubov-voloshko merged 1 commit intomainfrom
fix-sorting

Conversation

@lyubov-voloshko
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings February 2, 2026 13:25
@lyubov-voloshko lyubov-voloshko merged commit 4f389a2 into main Feb 2, 2026
20 checks passed
@lyubov-voloshko lyubov-voloshko deleted the fix-sorting branch February 2, 2026 13:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the table view’s default-sorting behavior so that server-provided defaults are applied only when appropriate and do not leak across table switches.

Changes:

  • Limit syncing of defaultSort from tableData.defaultSort to the first successful data load per table, preventing subsequent loads from overwriting user-managed default sort state.
  • On table name changes, reset both the current sort state and the component’s defaultSort so a previous table’s default sort does not appear on a newly selected table.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant