-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Contextual error toasts for deleting referenced rows #23135
Contextual error toasts for deleting referenced rows #23135
Conversation
joshenlim
commented
Apr 22, 2024
No changes detected in Branching Preview Branches by Supabase. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Ignored Deployments
|
const initialMessage = isMultipleRows | ||
? `Unable to delete rows as one of them is currently referenced by a foreign key constraint from the table \`${referencingTable}\`.` | ||
: `Unable to delete row as it is currently referenced by a foreign key constraint from the table \`${referencingTable}\`.` | ||
const resolutionCTA = `Set a cascade behaviour on the foreign key relation \`${fkName}\` in the \`${referencingTable}\` table to automatically respond when row(s) are being deleted in the \`${sourceTable}\` table.` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[misspell] reported by reviewdog 🐶
"behaviour" is a misspelling of "behavior"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!