mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-11 16:09:39 +00:00
fix(hub-projects): reset migration drafts on workspace/folder switch
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
d31d298130
commit
3a8ee64ec4
@@ -478,8 +478,15 @@
|
||||
// from the previous workspace don't linger.
|
||||
recordDrawer?.closeDrawer()
|
||||
publishDrawer?.closeDrawer()
|
||||
bundleDrawer?.closeDrawer()
|
||||
recordTarget = undefined
|
||||
publishTarget = undefined
|
||||
// Drop migration drafts and invalidate any in-flight generation so the
|
||||
// previous project's table SQL can't publish under the new one. The
|
||||
// orphaned generation's `finally` is seq-guarded, so reset the spinner here.
|
||||
migrationDrafts = []
|
||||
migrationsSeq++
|
||||
migrationsGenerating = false
|
||||
loadWorkspace($workspaceStore, seq)
|
||||
loadTriggers($workspaceStore, seq)
|
||||
// Resume the folder's project if one exists.
|
||||
|
||||
Reference in New Issue
Block a user