temporary fix for misused slug (#6794)

Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com>
This commit is contained in:
chyz
2026-07-21 11:36:25 -07:00
committed by GitHub
co-authored by Prospector
parent 84b4f8e474
commit fc1aa28aa4
@@ -326,9 +326,12 @@ export default function () {
}))(state)
})
.fix(
//TODO chyz think of some way to have initial values actually be reflected in state without having to store them
fix().project((patch, state) => {
const slug = state['correct-slug'] as string
if (!slug) return
const slug =
(state['correct-slug'] as string | undefined) ??
resolvedAutoSlug.value
if (!slug || slug === project.value.slug) return
patch.slug = slug
}),
),