Skip to content

fix(databases): resolve crash when opening rebuild database dialog#4763

Merged
Siumauricio merged 1 commit into
canaryfrom
fix/rebuild-database-dialog-crash
Jul 7, 2026
Merged

fix(databases): resolve crash when opening rebuild database dialog#4763
Siumauricio merged 1 commit into
canaryfrom
fix/rebuild-database-dialog-crash

Conversation

@Siumauricio

Copy link
Copy Markdown
Contributor

What is this PR about?

Opening the Rebuild Database dialog crashed the page with Error: Primitive.button failed to slot onto its children. Expected a single React element child or \Slottable`.` — a regression from the Tailwind v4 / shadcn update (#4706) shipped in v0.29.10.

Changes

  • Fixed the crash: AlertDialogAction now wraps its children in <Button asChild> internally, so passing asChild with a nested <Button> made the Radix Slot receive an array of children and throw. Replaced it with a plain AlertDialogAction using variant="destructive" + disabled, matching the idiom used by the rest of the alert dialogs (e.g. dialog-action.tsx). The loading state is still visible on the trigger button while the rebuild runs.
  • Fixed invalid markup: AlertDialogDescription renders a <p>, but contained <p> and <ul> children (hydration warnings). It now uses asChild with a <div> wrapper.

Issues related

Closes #4760

@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. bug Something isn't working labels Jul 7, 2026
@Siumauricio Siumauricio merged commit 82fcdc9 into canary Jul 7, 2026
4 checks passed
@Siumauricio Siumauricio deleted the fix/rebuild-database-dialog-crash branch July 7, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rebuild Database Returns To 404

1 participant