mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
fix(dashboard): don't fail RDE apply when post-apply config refresh fails
Co-Authored-By: mantra <mantra@stack-auth.com>
This commit is contained in:
parent
f47d81aeff
commit
e11653022f
@ -65,8 +65,15 @@ export function RdeApplyDialog({ open, adminApp, configUpdate, onSettle }: RdeAp
|
||||
}
|
||||
// "redirecting": the browser secret flow took over; treat as not-applied.
|
||||
if (result === "updated") {
|
||||
const project = await adminApp.getProject();
|
||||
await project.refreshConfig();
|
||||
// The apply already succeeded at this point; a failed cache refresh
|
||||
// must not surface as a failed apply (which would prompt a retry of
|
||||
// an already-applied mutation), so report it separately.
|
||||
try {
|
||||
const project = await adminApp.getProject();
|
||||
await project.refreshConfig();
|
||||
} catch (refreshError) {
|
||||
captureError("config-update-rde-refresh", refreshError);
|
||||
}
|
||||
}
|
||||
onSettle(result === "updated");
|
||||
} catch (error) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user