Skip to content

[ENG-1035] Fix the can't create relation type bug#571

Merged
trangdoan982 merged 1 commit into
mainfrom
eng-1035-relation-type-bug
Dec 3, 2025
Merged

[ENG-1035] Fix the can't create relation type bug#571
trangdoan982 merged 1 commit into
mainfrom
eng-1035-relation-type-bug

Conversation

@trangdoan982

Copy link
Copy Markdown
Member

No description provided.

@linear

linear Bot commented Nov 28, 2025

Copy link
Copy Markdown

@supabase

supabase Bot commented Nov 28, 2025

Copy link
Copy Markdown

This pull request has been ignored for the connected project zytfjzqyijgagqxrzbmz because there are no changes detected in packages/database/supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

const handleSave = async (): Promise<void> => {
for (const relType of relationTypes) {
if (!relType.id || !relType.label || !relType.complement || !relType.color) {
if (!relType.id || !relType.label || !relType.complement) {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

this wrong validation mechanism caused users unable to create new relation (color is default "" and therefore will always raise this error)

@trangdoan982 trangdoan982 merged commit 3ec9c16 into main Dec 3, 2025
4 checks passed
@trangdoan982 trangdoan982 deleted the eng-1035-relation-type-bug branch December 3, 2025 21:55
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.

2 participants