fix(mod): use existing uuid for edit
This commit is contained in:
parent
2f563e1bfb
commit
1c1430ba5c
@ -192,7 +192,7 @@ export const ModForm = ({ existingModData }: ModFormProps) => {
|
||||
return
|
||||
}
|
||||
|
||||
const uuid = uuidv4()
|
||||
const uuid = formState.dTag || uuidv4()
|
||||
const currentTimeStamp = now()
|
||||
|
||||
const aTag =
|
||||
@ -204,7 +204,7 @@ export const ModForm = ({ existingModData }: ModFormProps) => {
|
||||
pubkey: hexPubkey,
|
||||
content: formState.body,
|
||||
tags: [
|
||||
['d', formState.dTag || uuid],
|
||||
['d', uuid],
|
||||
['a', aTag],
|
||||
['r', formState.rTag],
|
||||
['t', T_TAG_VALUE],
|
||||
|
Loading…
Reference in New Issue
Block a user