mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 00:55:25 +00:00
temporary fix for misused slug (#6794)
Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
}),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user