-
Notifications
You must be signed in to change notification settings - Fork 0
fix: Fix crash when creating a new relation #433
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: Fix crash when creating a new relation #433
Conversation
ENG-555 Fix crash when creating new relation
The relation modal dialog crashes when creating a new relation. |
🦋 Changeset detectedLatest commit: 7642858 The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughThis pull request introduces two sets of patches. One update adjusts the error display style in the UI components package to render at full width, ensuring centered error messages. The other patch addresses a crash in the project builder web package that occurred when creating a new relation. In addition, the relation form has been made more robust by updating the function to return a fully populated configuration with default values and simplifying the event handling for field changes in the relation form component. No changes were made to public API declarations. Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant MF as ModelRelationForm
participant GF as getRelationDefaultsFromModel
participant C as ComboboxField.Controller
U->>MF: Open relation form
MF->>GF: Request default relation config
GF-->>MF: Return complete ModelRelationFieldConfig (with defaults)
U->>C: Change references via combobox
C->>MF: Trigger onChange event
MF->>MF: Update state using setValue(references) directly
Tip 🌐 Web search-backed reviews and chat
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
✅ Files skipped from review due to trivial changes (2)
🔇 Additional comments (4)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit