🐛 Add project-id guard to use-plugin-register layout effect (#10859)

Add `project-id` to the guard condition in `use-plugin-register`'s layout effect so the plugin "Try out" flow waits until projects have loaded.

Previously, only `plugin-url` was checked, which allowed the fetch to fire
before projects were available, sending a nil `project-id` and causing a 400
validation error from the backend.

AI-assisted-by: mimo-v2.5-pro
This commit is contained in:
Andrey Antukh 2026-08-07 19:21:32 +02:00 committed by GitHub
parent 2f04fcddbf
commit e01b36b841
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -211,7 +211,7 @@
(mf/with-layout-effect
[plugin-url team-id project-id]
(when plugin-url
(when (and plugin-url project-id)
(->> (dp/fetch-manifest plugin-url)
(rx/subs!
(fn [plugin]