This commit is contained in:
Prospector
2026-07-21 11:42:30 -07:00
parent fc1aa28aa4
commit 832240a45f
@@ -326,11 +326,10 @@ 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
//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 | undefined) ??
resolvedAutoSlug.value
(state['correct-slug'] as string | undefined) ?? resolvedAutoSlug.value
if (!slug || slug === project.value.slug) return
patch.slug = slug
}),