1
0
Fork 0

[org] fix: Fix 'update pattern' link

This commit is contained in:
joostdecock 2025-04-02 17:31:23 +02:00
parent b5d5c4f15d
commit c5720c1163
2 changed files with 4 additions and 1 deletions

View file

@ -6,6 +6,7 @@ import {
shortDate,
horFlexClasses,
newPatternUrl,
patternUrlFromState,
} from '@freesewing/utils'
import { urls, control as controlConfig } from '@freesewing/config'
@ -379,7 +380,7 @@ const PatternHeader = ({
{pattern.userId === account.id && (
<>
<Link
href={`/account/patterns/${pattern.design}/edit?id=${pattern.id}`}
href={patternUrlFromState(pattern, true)}
className={`tw-daisy-btn tw-daisy-btn-primary tw-daisy-btn-outline ${horFlexClasses}`}
>
<FreeSewingIcon /> Update Pattern