Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix creation from empty state #9341

Merged
merged 1 commit into from
Jan 3, 2025
Merged

Conversation

thomtrp
Copy link
Contributor

@thomtrp thomtrp commented Jan 3, 2025

Invert logic of pending record creation

Fix #9338

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Fixed logic in hasPendingRecordComponentSelector to correctly indicate when a pending record exists, making the behavior more intuitive for both grouped and ungrouped records.

  • Inverted isDefined check in packages/twenty-front/src/modules/object-record/record-table/states/selectors/hasPendingRecordComponentSelector.ts to return true when pending records exist
  • Aligned behavior between grouped and ungrouped record checks for consistency

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

Copy link
Member

@Weiko Weiko left a comment

Choose a reason for hiding this comment

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

LGTM

@Weiko Weiko merged commit e87b2c9 into main Jan 3, 2025
23 checks passed
@Weiko Weiko deleted the tt-fix-creation-from-empty-state branch January 3, 2025 16:42
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.

Can't create a new record when page is empty
2 participants